Tensor Comprehensions
|
#include <mapping_options.h>
Public Member Functions | |
CudaDimView (const CudaDimView &)=default | |
Construct a view that refers to a protocol buffers message. More... | |
CudaDimView (CudaDimProto &buf) | |
size_t | size () const |
Number of values held. More... | |
std::vector< uint64_t > | extractVector () const |
Return a copy of values as std::vector. More... | |
std::array< uint64_t, 3 > | extractDefaultedArray () const |
Return a copy of values as std::array of size 3 padded with defaultDim. More... | |
ValueAccessor< uint64_t > | operator[] (size_t i) |
uint64_t | operator[] (size_t i) const |
Access the values positionally (x=0, y=1, z=2). More... | |
CudaDimView & | operator= (const CudaDimView &view) |
Assign the values from another view. More... | |
bool | operator== (const CudaDimView &view) const |
Compare the values with those from another view. More... | |
bool | operator!= (const CudaDimView &view) const |
std::string | toCommaSeparatedString () const |
Conversion to string and output operators. More... | |
Public Attributes | |
CudaDimProto & | proto |
Static Public Attributes | |
static const uint64_t | defaultDim = 1 |
Private Member Functions | |
CudaDimView ()=default | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CudaDimView &view) |
View of a CudaDimProto.
Provides sequence container-like access to a CudaDimProto, which holds at least one (x) and at most three (x,y,z) values.
|
privatedefault |
|
default |
Construct a view that refers to a protocol buffers message.
|
inlineexplicit |
|
inline |
Return a copy of values as std::array of size 3 padded with defaultDim.
|
inline |
Return a copy of values as std::vector.
|
inline |
|
inline |
Assign the values from another view.
|
inline |
Compare the values with those from another view.
|
inline |
Return a modifiable object which replicates assignments back to the underlying protocol buffers message.
|
inline |
Access the values positionally (x=0, y=1, z=2).
|
inline |
Number of values held.
std::string tc::CudaDimView::toCommaSeparatedString | ( | ) | const |
Conversion to string and output operators.
|
friend |
|
static |
CudaDimProto& tc::CudaDimView::proto |