|
tvm
|
Node to represent a tensor. More...
#include <tensor.h>
Public Member Functions | |
| ffi::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 |
| ffi::String | GetNameHint () const final |
| Get the name hint of the data producer. More... | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("te.Tensor", TensorNode, DataProducerNode) | |
Public Member Functions inherited from tvm::tir::DataProducerNode | |
| virtual | ~DataProducerNode () |
| destructor. More... | |
| TVM_FFI_DECLARE_OBJECT_INFO ("tir.DataProducer", DataProducerNode, PrimExprConvertibleNode) | |
Public Member Functions inherited from tvm::PrimExprConvertibleNode | |
| virtual | ~PrimExprConvertibleNode () |
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.PrimExprConvertible", PrimExprConvertibleNode, Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Public Attributes | |
| ffi::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 TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindConstTreeNode |
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_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "te.Tensor" | , |
| TensorNode | , | ||
| DataProducerNode | |||
| ) |
|
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
| ffi::Array<PrimExpr> tvm::te::TensorNode::shape |
The shape of the tensor.
| int tvm::te::TensorNode::value_index {0} |
the output index from source operation