21 constexpr std::nullopt_t
None = std::nullopt;
52 std::optional<int64_t> stop,
53 std::optional<int64_t> step);
115 class IndexTensorImpl;
116 std::shared_ptr<Impl> impl_;
117 TensorKey(
const std::shared_ptr<Impl>& impl);
TensorKey is used to represent single index, slice or advanced indexing on a Tensor.
Definition: TensorKey.h:27
int64_t GetStart() const
Definition: TensorKey.cpp:165
std::string ToString() const
Convert TensorKey to a string representation.
Definition: TensorKey.cpp:141
static TensorKey Index(int64_t index)
Definition: TensorKey.cpp:143
int64_t GetIndex() const
Definition: TensorKey.cpp:157
Tensor GetIndexTensor() const
Definition: TensorKey.cpp:195
int64_t GetStop() const
Definition: TensorKey.cpp:172
TensorKeyMode
Definition: TensorKey.h:68
TensorKeyMode GetMode() const
Returns TensorKey mode.
Definition: TensorKey.cpp:139
static TensorKey IndexTensor(const Tensor &index_tensor)
Definition: TensorKey.cpp:153
~TensorKey()
Definition: TensorKey.h:69
static TensorKey Slice(std::optional< int64_t > start, std::optional< int64_t > stop, std::optional< int64_t > step)
Definition: TensorKey.cpp:147
TensorKey InstantiateDimSize(int64_t dim_size) const
Definition: TensorKey.cpp:186
int64_t GetStep() const
Definition: TensorKey.cpp:179
constexpr std::nullopt_t None
Definition: TensorKey.h:21
Definition: PinholeCameraIntrinsic.cpp:16