Poplar and PopLibs
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
poplar::program::Execute Class Reference

Program that executes a compute set in the graph. More...

#include <Program.hpp>

Inheritance diagram for poplar::program::Execute:
poplar::program::Program

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...
 

Detailed Description

Program that executes a compute set in the graph.

Constructor & Destructor Documentation

◆ Execute() [1/2]

poplar::program::Execute::Execute ( ComputeSet  cs,
const DebugContext debugContext = {} 
)
explicit

Construct a graph execution program.

Parameters
csThe compute set to execute.
debugContextOptional DebugId and program name.

◆ Execute() [2/2]

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.

See also
Vertex and MultiVertex
Parameters
csThe compute set to execute.
tThe tensor to write the exit status to.
debugContextOptional DebugId and program name.

The documentation for this class was generated from the following file: