42 std::ostream& operator<<(std::ostream& out, Coord<Rank>
const& coord) {
43 for (
int i = 0; i < Rank; ++i) {
44 out << (i ?
", " :
"") << coord.idx[i];
69 inline std::ostream &operator<<(std::ostream &out, ScalarIO<T>
const &scalar) {
70 return out << scalar.value;
75 inline std::ostream &operator<<(std::ostream &out, ScalarIO<int8_t>
const &scalar) {
76 return out << int(scalar.value);
81 inline std::ostream &operator<<(std::ostream &out, ScalarIO<uint8_t>
const &scalar) {
82 return out << unsigned(scalar.value);
91 for (
int i = 0; i < 32; i++) {
92 out << int(scalar.value[i]);
93 out << ((i != 31) ?
", " :
"");
104 for (
int i = 0; i < 8; i++) {
105 out << int(scalar.value[i]);
106 out << ((i != 7) ?
", " :
"");
117 for (
int i = 0; i < 8; i++) {
118 out << unsigned(scalar.value[i]);
119 out << ((i != 7) ?
", " :
"");
A Coord is a coordinate of arbitrary rank into a tensor or matrix.
ScalarIO(T value)
Constructs from a value.
Definition: core_io.h:62
ScalarIO()
Default ctor.
Definition: core_io.h:59
std::ostream & operator<<(std::ostream &out, Coord< Rank > const &coord)
Definition: core_io.h:42
Helper to enable formatted printing of CUTLASS scalar types to an ostream.
Definition: core_io.h:53
T value
Value to print.
Definition: core_io.h:56
Defines a 1D vector of elements held in the registers of each thread.