65 static TensorKey Slice(int64_t start, int64_t stop, int64_t step);
82 AssertMode(TensorKeyMode::Index);
87 AssertMode(TensorKeyMode::Slice);
92 AssertMode(TensorKeyMode::Slice);
97 AssertMode(TensorKeyMode::Slice);
102 AssertMode(TensorKeyMode::Slice);
103 return start_is_none_;
107 AssertMode(TensorKeyMode::Slice);
108 return stop_is_none_;
112 AssertMode(TensorKeyMode::Slice);
113 return step_is_none_;
116 std::shared_ptr<Tensor> GetIndexTensor()
const;
126 TensorKey UpdateWithDimSize(int64_t dim_size)
const;
137 std::string ToString()
const;
150 const Tensor& index_tensor);
169 bool start_is_none_ =
false;
170 bool stop_is_none_ =
false;
171 bool step_is_none_ =
false;
void AssertMode(TensorKeyMode mode) const
Definition: TensorKey.h:152
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle temperature_c k4a_image_t image_handle uint8_t image_handle image_handle image_handle image_handle image_handle timestamp_usec white_balance image_handle k4a_device_configuration_t config device_handle char size_t serial_number_size bool int32_t int32_t int32_t int32_t k4a_color_control_mode_t default_mode mode
Definition: K4aPlugin.cpp:680
NoneType None
Definition: TensorKey.cpp:37
Definition: TensorKey.h:55
bool GetStopIsNone() const
Definition: TensorKey.h:106
void LogError(const char *format, const Args &... args)
Definition: Console.h:176
int64_t GetIndex() const
Definition: TensorKey.h:81
TensorKeyMode GetMode() const
Getters will check the TensorKeyMode.
Definition: TensorKey.h:79
int64_t GetStop() const
Definition: TensorKey.h:91
Definition: TensorKey.h:37
TensorKeyMode
Definition: TensorKey.h:57
bool GetStartIsNone() const
Definition: TensorKey.h:101
int64_t GetStep() const
Definition: TensorKey.h:96
Definition: PinholeCameraIntrinsic.cpp:35
std::shared_ptr< Tensor > index_tensor_
Definition: TensorKey.h:176
bool GetStepIsNone() const
Definition: TensorKey.h:111
TensorKeyMode mode_
Depending on the mode, some properties may or may not be used.
Definition: TensorKey.h:159
int64_t GetStart() const
Definition: TensorKey.h:86