|
tvm
|
Tensor structure representing a possible input, or intermediate computation result. More...
#include <tensor.h>
Classes | |
| class | Slice |
| data structure to represent a slice that fixes first k coordinates. This is used to enable syntax sugar of Tensor[x][y][z] to get the element. More... | |
Public Member Functions | |
| Tensor (ffi::Array< PrimExpr > shape, PrimType dtype, Operation op, int value_index) | |
| bool | operator== (const Tensor &other) const |
| check if two tensors equals each other. | |
| bool | operator!= (const Tensor &other) const |
| check if two tensors are different. | |
| size_t | ndim () const |
| template<typename... Args> | |
| PrimExpr | operator() (Args &&... args) const |
| Take elements from the tensor. | |
| PrimExpr | operator() (ffi::Array< PrimExpr > indices) const |
| Take elements from the tensor. | |
| PrimExpr | operator() (ffi::Array< PrimVar > indices) const |
| Take elements from the tensor. | |
| template<typename... Args> | |
| PrimExpr | IndexWithNegativeIndices (Args &&... args) const |
| Take elements from the tensor with support for negative indices. | |
| PrimExpr | IndexWithNegativeIndices (ffi::Array< PrimExpr > indices) const |
| Take elements from the tensor with support for negative indices. | |
| PrimExpr | IndexWithNegativeIndices (ffi::Array< PrimVar > indices) const |
| Take elements from the tensor with support for negative indices. | |
| Slice | operator[] (PrimExpr i) const |
| get i-th slice from the current Tensor. | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (Tensor, OpaqueExpr, TensorNode) | |
Public Member Functions inherited from tvm::OpaqueExpr | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (OpaqueExpr, Expr, OpaqueExprNode) | |
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) | |
Tensor structure representing a possible input, or intermediate computation result.
| tvm::te::Tensor::Tensor | ( | ffi::Array< PrimExpr > | shape, |
| PrimType | dtype, | ||
| Operation | op, | ||
| int | value_index | ||
| ) |
|
inline |
Take elements from the tensor with support for negative indices.
| args | The indices |
Take elements from the tensor with support for negative indices.
| indices | the indices. |
Take elements from the tensor with support for negative indices.
| indices | the indices. |
|
inline |
check if two tensors are different.
| other | tensor to be checked. |
Take elements from the tensor.
| args | The indices |
Take elements from the tensor.
| indices | the indices. |
Take elements from the tensor.
| indices | the indices. |
check if two tensors equals each other.
| other | tensor to be checked. |
get i-th slice from the current Tensor.
| i | the index of the coordinate |
| tvm::te::Tensor::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE | ( | Tensor | , |
| OpaqueExpr | , | ||
| TensorNode | |||
| ) |