Get the data address of the index and the left
accessible data size.
Prototype
std::pair<std::uint64_t, std::size_t> data(const std::vector<std::int32_t> idx = {});
Parameters
The following table lists thedata
function
arguments.
Type | Name | Description |
---|---|---|
const std::vector<std::int32_t> | idx | The index of the data to be accessed, its dimension same to the Tensor shape |