Constant tensor.
More...
#include <expr.h>
|
runtime::Tensor | data |
| The data of the tensor. More...
|
|
ffi::Optional< ObjectRef > | struct_info_ = ffi::Optional<ObjectRef>() |
| Stores the result of structure information of the expression that encapsulate both static shape and runtime information such as shape. More...
|
|
Span | span |
| Span that points to the original source code. Reserved debug information. More...
|
|
Constant tensor.
- Note
- Scalar constants are represented by ndim-0 constant tensors.
◆ is_scalar()
bool tvm::relax::ConstantNode::is_scalar |
( |
| ) |
const |
|
inline |
- Returns
- Whether it is scalar(ndim-0 tensor)
◆ RegisterReflection()
static void tvm::relax::ConstantNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ tensor_type()
TensorType tvm::relax::ConstantNode::tensor_type |
( |
| ) |
const |
- Returns
- The corresponding tensor type of the data
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
◆ data
The documentation for this class was generated from the following file: