#include <expr.h>
|
| | Constant (runtime::Tensor data, ffi::Optional< StructInfo > struct_info_annotation=std::nullopt, Span span=Span()) |
| | The constructor. More...
|
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (Constant, LeafExpr, ConstantNode) |
| |
| | TVM_DEFINE_OBJECT_REF_COW_METHOD (ConstantNode) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (LeafExpr, Expr, LeafExprNode) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (RelaxExpr, BaseExpr, RelaxExprNode) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (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_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE()
The documentation for this class was generated from the following file: