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