DebugContext gathers the common external parameters of the context of an operation.
Definition: DebugContext.hpp:221
Common functions, such as elementwise and reductions.
Definition: AllTrue.hpp:15
void encodeOneHot(poplar::Graph &graph, const poplar::Tensor &indices, const poplar::Tensor &encoded, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext={})
Encode a given set of indices as a set of one-hot vectors per-index with a hot element at that index.
void iota(poplar::Graph &graph, const poplar::Tensor &t, unsigned startInteger, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext={})
Fill a tensor with a right-open range of unsigned integers: [startInteger, startInteger + length),...