tvm
|
Node to represent a tensor. More...
#include <tensor.h>
Public Member Functions | |
Array< PrimExpr > | GetShape () const final |
Get the shape of the result. More... | |
DataType | GetDataType () const final |
Get the data type of the result. More... | |
PrimExpr | ToPrimExpr () const final |
String | GetNameHint () const final |
Get the name hint of the data producer. More... | |
TVM_DECLARE_FINAL_OBJECT_INFO (TensorNode, DataProducerNode) | |
![]() | |
virtual | ~DataProducerNode () |
destructor. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (DataProducerNode, PrimExprConvertibleNode) | |
![]() | |
virtual | ~PrimExprConvertibleNode () |
TVM_DECLARE_BASE_OBJECT_INFO (PrimExprConvertibleNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
Public Attributes | |
Array< PrimExpr > | shape |
The shape of the tensor. More... | |
DataType | dtype |
data type in the content of the tensor More... | |
Operation | op |
the source operation, can be None More... | |
int | value_index {0} |
the output index from source operation More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "te.Tensor" |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindConstTreeNode |
![]() | |
static constexpr const char * | _type_key = "tir.DataProducer" |
![]() | |
static constexpr const char * | _type_key = "ir.PrimExprConvertible" |
Node to represent a tensor.
|
inlinefinalvirtual |
|
finalvirtual |
Get the name hint of the data producer.
Implements tvm::tir::DataProducerNode.
|
inlinefinalvirtual |
|
static |
|
finalvirtual |
Implements tvm::PrimExprConvertibleNode.
tvm::te::TensorNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | TensorNode | , |
DataProducerNode | |||
) |
|
staticconstexpr |
|
staticconstexpr |
DataType tvm::te::TensorNode::dtype |
data type in the content of the tensor
Operation tvm::te::TensorNode::op |
the source operation, can be None
Array<PrimExpr> tvm::te::TensorNode::shape |
The shape of the tensor.
int tvm::te::TensorNode::value_index {0} |
the output index from source operation