|
| Tensor (Array< PrimExpr > shape, DataType dtype, Operation op, int value_index) |
|
bool | operator== (const Tensor &other) const |
| check if two tensors equals each other. More...
|
|
bool | operator!= (const Tensor &other) const |
| check if two tensors are different. More...
|
|
size_t | ndim () const |
|
template<typename... Args> |
PrimExpr | operator() (Args &&... args) const |
| Take elements from the tensor. More...
|
|
PrimExpr | operator() (Array< PrimExpr > indices) const |
| Take elements from the tensor. More...
|
|
PrimExpr | operator() (Array< Var > indices) const |
| Take elements from the tensor. More...
|
|
template<typename... Args> |
PrimExpr | IndexWithNegativeIndices (Args &&... args) const |
| Take elements from the tensor with support for negative indices. More...
|
|
PrimExpr | IndexWithNegativeIndices (Array< PrimExpr > indices) const |
| Take elements from the tensor with support for negative indices. More...
|
|
PrimExpr | IndexWithNegativeIndices (Array< Var > indices) const |
| Take elements from the tensor with support for negative indices. More...
|
|
Slice | operator[] (PrimExpr i) const |
| get i-th slice from the current Tensor. More...
|
|
| TVM_DEFINE_OBJECT_REF_METHODS (Tensor, DataProducer, TensorNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (DataProducer, ObjectRef, DataProducerNode) |
|
| 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...
|
|