Constant tensor.
More...
#include <expr.h>
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()
| tvm::relax::ConstantNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"relax.expr.Constant" |
, |
|
|
ConstantNode |
, |
|
|
ExprNode |
|
|
) |
| |
◆ data
The documentation for this class was generated from the following file: