63 static TensorKey Slice(int64_t start, int64_t stop, int64_t step);
80 AssertMode(TensorKeyMode::Index);
85 AssertMode(TensorKeyMode::Slice);
90 AssertMode(TensorKeyMode::Slice);
95 AssertMode(TensorKeyMode::Slice);
100 AssertMode(TensorKeyMode::Slice);
101 return start_is_none_;
105 AssertMode(TensorKeyMode::Slice);
106 return stop_is_none_;
110 AssertMode(TensorKeyMode::Slice);
111 return step_is_none_;
114 std::shared_ptr<Tensor> GetIndexTensor()
const;
124 TensorKey UpdateWithDimSize(int64_t dim_size)
const;
145 const Tensor& index_tensor);
164 bool start_is_none_ =
false;
165 bool stop_is_none_ =
false;
166 bool step_is_none_ =
false;
bool GetStepIsNone() const
Definition: TensorKey.h:109
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:676
int64_t GetIndex() const
Definition: TensorKey.h:79
std::shared_ptr< Tensor > index_tensor_
Definition: TensorKey.h:171
TensorKeyMode GetMode() const
Getters will check the TensorKeyMode.
Definition: TensorKey.h:77
TensorKeyMode mode_
Depending on the mode, some properties may or may not be used.
Definition: TensorKey.h:154
int64_t GetStart() const
Definition: TensorKey.h:84
void LogError(const char *format, const Args &... args)
Definition: Console.h:174
Definition: TensorKey.h:53
void AssertMode(TensorKeyMode mode) const
Definition: TensorKey.h:147
int64_t GetStep() const
Definition: TensorKey.h:94
bool GetStartIsNone() const
Definition: TensorKey.h:99
Definition: Open3DViewer.h:29
TensorKeyMode
Definition: TensorKey.h:55
bool GetStopIsNone() const
Definition: TensorKey.h:104
Definition: TensorKey.h:35
NoneType None
Definition: TensorKey.cpp:33
int64_t GetStop() const
Definition: TensorKey.h:89