Poplar and PopLibs
|
Program that executes a compute set in the graph. More...
#include <Program.hpp>
Public Member Functions | |
Execute (ComputeSet cs, const DebugContext &debugContext={}) | |
Construct a graph execution program. More... | |
Execute (ComputeSet cs, Tensor t, const DebugContext &debugContext={}) | |
Construct a graph execution program and write the exit status to a scalar tensor. More... | |
Program that executes a compute set in the graph.
|
explicit |
Construct a graph execution program.
cs | The compute set to execute. |
debugContext | Optional DebugId and program name. |
poplar::program::Execute::Execute | ( | ComputeSet | cs, |
Tensor | t, | ||
const DebugContext & | debugContext = {} |
||
) |
Construct a graph execution program and write the exit status to a scalar tensor.
The exit status is the logical and of the values returned by the compute()
method of all the vertices in the compute set.
cs | The compute set to execute. |
t | The tensor to write the exit status to. |
debugContext | Optional DebugId and program name. |