AllTrue
#include <popops/AllTrue.hpp>
Perform logical AND of tensor elements.
-
namespace popops
Common functions, such as elementwise and reductions.
Functions
-
poplar::Tensor allTrue(poplar::Graph &graph, poplar::Tensor A, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext = {})
Given a boolean tensor, compute the logical AND of all its elements.
A new variable is created to store the result.
- Parameters
graph – The Poplar graph.
A – The boolean tensor.
prog – The program sequence to add this operation to.
debugContext – Optional debug information.
- Throws
poputil::poplibs_error – If the elements of
A
are not booleans.- Returns
A variable that holds the result of the operation.
-
poplar::Tensor allTrue(poplar::Graph &graph, poplar::Tensor A, poplar::program::Sequence &prog, const poplar::DebugContext &debugContext = {})