114 class IndexTensorImpl;
115 std::shared_ptr<Impl> impl_;
116 TensorKey(
const std::shared_ptr<Impl>& impl);
TensorKey is used to represent single index, slice or advanced indexing on a Tensor.
std::string ToString() const
Convert TensorKey to a string representation.
TensorKeyMode GetMode() const
Returns TensorKey mode.
TensorKey InstantiateDimSize(int64_t dim_size) const
static TensorKey IndexTensor(const Tensor &index_tensor)
Tensor GetIndexTensor() const
static TensorKey Index(int64_t index)
static TensorKey Slice(utility::optional< int64_t > start, utility::optional< int64_t > stop, utility::optional< int64_t > step)
constexpr utility::nullopt_t None
Generic file read and write utility for python interface.