11#include <poplar/Graph.hpp>
12#include <poplar/Program.hpp>
18using CountedLoopBodyType =
43 size_t step,
const CountedLoopBodyType &body,
69 const CountedLoopBodyType &body,
75 int countStep,
unsigned tile,
Poplibs generic debug info structure.
Generate a string describing a vertex type.
DebugContext gathers the common external parameters of the context of an operation.
Definition: DebugContext.hpp:221
This class represents a graph program to be executed on the IPU.
Definition: Graph.hpp:52
A reference to a subset of tensor elements.
Definition: Tensor.hpp:38
This class represents a control program that executes operations on the graph.
Definition: Program.hpp:30
Program that executes a sequence of programs.
Definition: Program.hpp:77
Common functions, such as elementwise and reductions.
Definition: AllTrue.hpp:15
poplar::program::Sequence countedLoop(poplar::Graph &graph, std::size_t begin, std::size_t end, size_t step, const CountedLoopBodyType &body, const poplar::DebugContext &debugContext={})
Create a loop program with constant initial count, increment and end value.
poplar::program::Sequence countedForLoop(poplar::Graph &graph, const poplar::Tensor &count, int initialCount, const poplar::Tensor &countLimit, int countStep, const poplar::program::Program &body, const poplar::DebugContext &debugContext={})
Create a for-loop program with constant initial count and increment, and a tensor as the end value.