|
tvm
|
Opaque construction-time node that represents a tensor. More...
#include <tensor.h>
Public Member Functions | |
| ffi::Array< PrimExpr > | GetShape () const |
| PrimType | GetDataType () const |
| ffi::String | GetNameHint () const |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("te.Tensor", TensorNode, OpaqueExprNode) | |
Public Member Functions inherited from tvm::OpaqueExprNode | |
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.OpaqueExpr", OpaqueExprNode, ExprNode) | |
Public Member Functions inherited from tvm::ExprNode | |
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.Expr", ExprNode, ffi::Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::OpaqueExprNode | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::ExprNode | |
| static void | RegisterReflection () |
Public Attributes | |
| ffi::Array< PrimExpr > | shape |
| The shape of the tensor. | |
| PrimType | dtype = PrimType::Void() |
| dtype in the content of the tensor | |
| Operation | op |
| the source operation, can be None | |
| int | value_index {0} |
| the output index from source operation | |
Public Attributes inherited from tvm::ExprNode | |
| Span | span |
| Span that points to the original source code. Reserved debug information. | |
| Type | ty = Type::Missing() |
| The deduced or annotated type of the expression. | |
Static Public Attributes | |
| static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindConstTreeNode |
Static Public Attributes inherited from tvm::OpaqueExprNode | |
| static constexpr const uint32_t | _type_child_slots = 2 |
Static Public Attributes inherited from tvm::ExprNode | |
| static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
| static constexpr const uint32_t | _type_child_slots = 64 |
Opaque construction-time node that represents a tensor.
|
inline |
| ffi::String tvm::te::TensorNode::GetNameHint | ( | ) | const |
|
inline |
| tvm::te::TensorNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "te.Tensor" | , |
| TensorNode | , | ||
| OpaqueExprNode | |||
| ) |
|
staticconstexpr |
| PrimType tvm::te::TensorNode::dtype = PrimType::Void() |
dtype 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