Managed reference to TensorStructInfoNode.
More...
#include <struct_info.h>
|
| TensorStructInfo (Expr shape, DataType dtype, Optional< VDevice > vdevice=std::nullopt, Span span=Span()) |
| Construction with a known shape expression. More...
|
|
| TensorStructInfo (DataType dtype, int ndim, Optional< VDevice > vdevice=std::nullopt, Span span=Span()) |
| Construction with an unknown shape expression. More...
|
|
| TVM_DEFINE_OBJECT_REF_METHODS (TensorStructInfo, StructInfo, TensorStructInfoNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (StructInfo, ObjectRef, StructInfoNode) |
|
◆ TensorStructInfo() [1/2]
tvm::relax::TensorStructInfo::TensorStructInfo |
( |
Expr |
shape, |
|
|
DataType |
dtype, |
|
|
Optional< VDevice > |
vdevice = std::nullopt , |
|
|
Span |
span = Span() |
|
) |
| |
Construction with a known shape expression.
- Parameters
-
shape | The shape of the tensor. |
dtype | The data type of tensor's elements. |
vdevice | The virtual device. |
span | The span of the AST. |
- Note
- shape must already be normalized.
◆ TensorStructInfo() [2/2]
tvm::relax::TensorStructInfo::TensorStructInfo |
( |
DataType |
dtype, |
|
|
int |
ndim, |
|
|
Optional< VDevice > |
vdevice = std::nullopt , |
|
|
Span |
span = Span() |
|
) |
| |
Construction with an unknown shape expression.
- Parameters
-
dtype | The data type of tensor's elements. |
ndim | The number of dimensions |
vdevice | The virtual device. |
span | The span of the AST. |
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: