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
poplar::Tensor checkAccuracyWhenCast(poplar::Graph &graph, const poplar::Tensor &input, poplar::Type outputType, double tolerance, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext={})
Helper function which checks the relative error in the tensor input when casting it to type outputTyp...
poplar::Tensor cast(poplar::Graph &graph, const poplar::Tensor &src, const poplar::Type &dstType, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext={})
Cast elements of the specified src tensor to dstType, returning the result as a new tensor.