operator[]
Function Usage
Obtains the dimension size of the index specified by a tensor.
Prototype
size_t operator[] (uint32_t idx) const;
size_t &operator[] (uint32_t idx);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
uint32_t |
Input |
Value of the tensor dimension index. |
Return Parameter Description
Data Structure |
Description |
|---|---|
size_t |
Size of the dimension specified by the tensor. |
Parent topic: TensorShape