From 3e91a7737e5f0fcf809b501194068b3e74463598 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Tue, 9 Feb 2021 21:29:58 +0000 Subject: [PATCH] Updated docs to match functions --- docs/overview/advanced-examples.rst | 8 ++++---- docs/overview/async-parallel.rst | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/overview/advanced-examples.rst b/docs/overview/advanced-examples.rst index 5823c6df1..665c4f0cf 100644 --- a/docs/overview/advanced-examples.rst +++ b/docs/overview/advanced-examples.rst @@ -97,7 +97,7 @@ Record commands in a single submit by using a Sequence to send in batch to GPU. mgr.evalOpDefault({tensorLHS, tensorRHS, tensorOutput}); // Create a new sequence - std::weak_ptr sqWeakPtr = mgr.getOrCreateManagedSequence(); + std::weak_ptr sqWeakPtr = mgr.sequence(); if (std::shared_ptr sq = sqWeakPtr.lock()) { @@ -226,8 +226,8 @@ Back to `examples list <#simple-examples>`_. // We need to create explicit sequences with their respective queues // The second parameter is the index in the familyIndex array which is relative // to the vector we created the manager with. - mgr.createManagedSequence("queueOne", 0); - mgr.createManagedSequence("queueTwo", 1); + mgr.sequence("queueOne", 0); + mgr.sequence("queueTwo", 1); // Creates tensor an initializes GPU memory (below we show more granularity) auto tensorA = std::make_shared(kp::Tensor(std::vector(10, 0.0))); @@ -422,7 +422,7 @@ Now that we have the inputs and outputs we will be able to use them in the proce kp::Manager mgr; if (std::shared_ptr sq = - mgr.getOrCreateManagedSequence("createTensors").lock()) + mgr.sequence("createTensors").lock()) { // ... diff --git a/docs/overview/async-parallel.rst b/docs/overview/async-parallel.rst index 88df7ac6f..8c983bc7d 100644 --- a/docs/overview/async-parallel.rst +++ b/docs/overview/async-parallel.rst @@ -208,8 +208,8 @@ It's worth mentioning you can have multiple sequences referencing the same queue // We need to create explicit sequences with their respective queues // The second parameter is the index in the familyIndex array which is relative // to the vector we created the manager with. - mgr.createManagedSequence("queueOne", 0); - mgr.createManagedSequence("queueTwo", 1); + mgr.sequence("queueOne", 0); + mgr.sequence("queueTwo", 1); We create the tensors without modifications.