Managed reference to TensorStructInfoNode.
More...
#include <struct_info.h>
|
| TensorStructInfo (Expr shape, DataType dtype, Optional< VDevice > vdevice=NullOpt, Span span=Span()) |
| Construction with a known shape expression. More...
|
|
| TensorStructInfo (DataType dtype, int ndim, Optional< VDevice > vdevice=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) |
|
| ObjectRef ()=default |
| default constructor More...
|
|
| ObjectRef (ObjectPtr< Object > data) |
| Constructor from existing object ptr. More...
|
|
bool | same_as (const ObjectRef &other) const |
| Comparator. More...
|
|
bool | operator== (const ObjectRef &other) const |
| Comparator. More...
|
|
bool | operator!= (const ObjectRef &other) const |
| Comparator. More...
|
|
bool | operator< (const ObjectRef &other) const |
| Comparator. More...
|
|
bool | defined () const |
|
const Object * | get () const |
|
const Object * | operator-> () const |
|
bool | unique () const |
|
int | use_count () const |
|
template<typename ObjectType , typename = std::enable_if_t<std::is_base_of_v<Object, ObjectType>>> |
const ObjectType * | as () const |
| Try to downcast the internal Object to a raw pointer of a corresponding type. More...
|
|
template<typename ObjectRefType , typename = std::enable_if_t<std::is_base_of_v<ObjectRef, ObjectRefType>>> |
Optional< ObjectRefType > | as () const |
| Try to downcast the ObjectRef to a Optional<T> of the requested type. More...
|
|
◆ TensorStructInfo() [1/2]
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]
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: