#include <expr.h>
|
| Constant (runtime::NDArray data, Optional< StructInfo > struct_info_annotation=std::nullopt, Span span=Span()) |
| The constructor. More...
|
|
| TVM_DEFINE_OBJECT_REF_METHODS (Constant, LeafExpr, ConstantNode) |
|
| TVM_DEFINE_OBJECT_REF_COW_METHOD (ConstantNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (LeafExpr, Expr, LeafExprNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (RelaxExpr, BaseExpr, RelaxExprNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (BaseExpr, ObjectRef, BaseExprNode) |
|
◆ Constant()
The constructor.
- Parameters
-
data | The data of the constant tensor. |
struct_info_annotation | The struct info of the constant tensor. If not specified, infer it from data. |
span | The source span of the expression. |
◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()
tvm::relax::Constant::TVM_DEFINE_OBJECT_REF_COW_METHOD |
( |
ConstantNode |
| ) |
|
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: