70 lhs(lhs_), rhs(rhs_), result(true) { }
75 Element lhs_ = lhs.
at(coord);
76 Element rhs_ = rhs.
at(coord);
84 operator bool()
const {
171 view(view_), value(value_), contains(false) { }
176 if (view.
at(coord) == value) {
185 operator bool()
const {
TensorContainsFunc()
Ctor.
Definition: host/tensor_compare.h:164
Definition: aligned_buffer.h:35
< Layout function
Definition: host/tensor_compare.h:148
TensorContainsFunc(TensorView< Element, Layout > const &view_, Element value_)
Ctor.
Definition: host/tensor_compare.h:167
CUTLASS_HOST_DEVICE TensorCoord const & extent() const
Returns the extent of the view (the size along each logical dimension).
Definition: tensor_view.h:167
void operator()(Coord< Layout::kRank > const &coord)
Visits a coordinate.
Definition: host/tensor_compare.h:174
bool TensorEquals(TensorView< Element, Layout > const &lhs, TensorView< Element, Layout > const &rhs)
Returns true if two tensor views are equal.
Definition: host/tensor_compare.h:97
Coord< Layout::kRank > location
Definition: host/tensor_compare.h:157
TensorView< Element, Layout > view
Definition: host/tensor_compare.h:154
TensorView< Element, Layout > lhs
Definition: host/tensor_compare.h:58
void operator()(Coord< Layout::kRank > const &coord)
Visits a coordinate.
Definition: host/tensor_compare.h:73
bool TensorContains(TensorView< Element, Layout > const &view, Element value)
Returns true if a value is present in a tensor.
Definition: host/tensor_compare.h:198
bool contains
Definition: host/tensor_compare.h:156
TensorEqualsFunc()
Ctor.
Definition: host/tensor_compare.h:63
This header contains a class to parametrize a statistical distribution function.
bool TensorNotEquals(TensorView< Element, Layout > const &lhs, TensorView< Element, Layout > const &rhs)
Returns true if two tensor views are NOT equal.
Definition: host/tensor_compare.h:122
Element value
Definition: host/tensor_compare.h:155
CUTLASS_HOST_DEVICE Reference at(TensorCoord const &coord) const
Returns a reference to the element at a given Coord.
Definition: tensor_ref.h:307
TensorEqualsFunc(TensorView< Element, Layout > const &lhs_, TensorView< Element, Layout > const &rhs_)
Ctor.
Definition: host/tensor_compare.h:66
void TensorForEach(Coord< Rank > extent, Func &func)
Iterates over the index space of a tensor.
Definition: host/tensor_foreach.h:87
bool result
Definition: host/tensor_compare.h:60
std::pair< bool, Coord< Layout::kRank > > TensorFind(TensorView< Element, Layout > const &view, Element value)
< Layout function
Definition: host/tensor_compare.h:223
Basic include for CUTLASS.
TensorView< Element, Layout > rhs
Definition: host/tensor_compare.h:59
< Layout function
Definition: host/tensor_compare.h:52