64 static TensorKey Slice(int64_t start, int64_t stop, int64_t step);
81 AssertMode(TensorKeyMode::Index);
86 AssertMode(TensorKeyMode::Slice);
91 AssertMode(TensorKeyMode::Slice);
96 AssertMode(TensorKeyMode::Slice);
101 AssertMode(TensorKeyMode::Slice);
102 return start_is_none_;
106 AssertMode(TensorKeyMode::Slice);
107 return stop_is_none_;
111 AssertMode(TensorKeyMode::Slice);
112 return step_is_none_;
115 std::shared_ptr<Tensor> GetIndexTensor()
const;
125 TensorKey UpdateWithDimSize(int64_t dim_size)
const;
146 const Tensor& index_tensor);
165 bool start_is_none_ =
false;
166 bool stop_is_none_ =
false;
167 bool step_is_none_ =
false;
void AssertMode(TensorKeyMode mode) const
Definition: TensorKey.h:148
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:677
NoneType None
Definition: TensorKey.cpp:35
Definition: TensorKey.h:54
bool GetStopIsNone() const
Definition: TensorKey.h:105
void LogError(const char *format, const Args &... args)
Definition: Console.h:176
int64_t GetIndex() const
Definition: TensorKey.h:80
TensorKeyMode GetMode() const
Getters will check the TensorKeyMode.
Definition: TensorKey.h:78
int64_t GetStop() const
Definition: TensorKey.h:90
Definition: TensorKey.h:36
TensorKeyMode
Definition: TensorKey.h:56
bool GetStartIsNone() const
Definition: TensorKey.h:100
int64_t GetStep() const
Definition: TensorKey.h:95
Definition: PinholeCameraIntrinsic.cpp:35
std::shared_ptr< Tensor > index_tensor_
Definition: TensorKey.h:172
bool GetStepIsNone() const
Definition: TensorKey.h:110
TensorKeyMode mode_
Depending on the mode, some properties may or may not be used.
Definition: TensorKey.h:155
int64_t GetStart() const
Definition: TensorKey.h:85