|
tvm
|
#include <expr.h>
Public Member Functions | |
| Constant (runtime::Tensor data, ffi::Optional< Type > ty_annotation=std::nullopt, Span span=Span()) | |
| The constructor. More... | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (Constant, Expr, ConstantNode) | |
| TVM_DEFINE_OBJECT_REF_COW_METHOD (ConstantNode) | |
Public Member Functions inherited from tvm::Expr | |
| bool | operator== (const Expr &other) const =delete |
| bool | operator!= (const Expr &other) const =delete |
| bool | operator< (const Expr &other) const =delete |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (Expr, ffi::ObjectRef, ExprNode) | |
|
explicit |
The constructor.
| data | The data of the constant tensor. |
| ty_annotation | The type of the constant tensor. If not specified, infer it from data. |
| span | The source span of the expression. |
| tvm::relax::Constant::TVM_DEFINE_OBJECT_REF_COW_METHOD | ( | ConstantNode | ) |
| tvm::relax::Constant::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE | ( | Constant | , |
| Expr | , | ||
| ConstantNode | |||
| ) |