134 std::shared_ptr<Impl> impl_;
135 TensorKey(
const std::shared_ptr<Impl>& impl);
Definition: Optional.h:168
TensorKey InstantiateDimSize(int64_t dim_size) const
Definition: TensorKey.cpp:195
TensorKey is used to represent single index, slice or advanced indexing on a Tensor.
Definition: TensorKey.h:45
int64_t GetIndex() const
Definition: TensorKey.cpp:166
std::string ToString() const
Convert TensorKey to a string representation.
Definition: TensorKey.cpp:150
static TensorKey Slice(utility::optional< int64_t > start, utility::optional< int64_t > stop, utility::optional< int64_t > step)
Definition: TensorKey.cpp:156
int64_t GetStop() const
Definition: TensorKey.cpp:181
static TensorKey Index(int64_t index)
Definition: TensorKey.cpp:152
TensorKeyMode
Definition: TensorKey.h:86
Definition: Optional.h:167
int64_t GetStep() const
Definition: TensorKey.cpp:188
Definition: TensorKey.cpp:64
TensorKeyMode GetMode() const
Returns TensorKey mode.
Definition: TensorKey.cpp:148
static TensorKey IndexTensor(const Tensor &index_tensor)
Definition: TensorKey.cpp:162
Definition: TensorKey.cpp:38
Definition: PinholeCameraIntrinsic.cpp:35
~TensorKey()
Definition: TensorKey.h:87
Definition: TensorKey.cpp:130
Tensor GetIndexTensor() const
Definition: TensorKey.cpp:204
Definition: TensorKey.cpp:49
int64_t GetStart() const
Definition: TensorKey.cpp:174
constexpr utility::nullopt_t None
Definition: TensorKey.h:39