tvm
|
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...
#include <tensor.h>
Public Member Functions | |
Slice (const Tensor &tensor, std::vector< PrimExpr > indices) | |
Slice | operator[] (PrimExpr i) |
get i-th slice from the current slice. More... | |
operator PrimExpr () const | |
Convert slice to expression. This is only valid when all the coordinates are fully specified. More... | |
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.
|
inline |
Convert slice to expression. This is only valid when all the coordinates are fully specified.
get i-th slice from the current slice.
i | the index of the coordinate |