#include <TensorKey.h>
|
static TensorKey | Index (int64_t index) |
|
static TensorKey | Slice (int64_t start, int64_t stop, int64_t step) |
|
static TensorKey | Slice (int64_t start, int64_t stop, NoneType step) |
|
static TensorKey | Slice (int64_t start, NoneType stop, int64_t step) |
|
static TensorKey | Slice (int64_t start, NoneType stop, NoneType step) |
|
static TensorKey | Slice (NoneType start, int64_t stop, int64_t step) |
|
static TensorKey | Slice (NoneType start, int64_t stop, NoneType step) |
|
static TensorKey | Slice (NoneType start, NoneType stop, int64_t step) |
|
static TensorKey | Slice (NoneType start, NoneType stop, NoneType step) |
|
static TensorKey | IndexTensor (const Tensor &index_tensor) |
|
|
static TensorKey | Slice (int64_t start, int64_t stop, int64_t step, bool start_is_none, bool stop_is_none, bool step_is_none) |
| The fully specifiec slice factory shall not be called directly. More...
|
|
A class to represent one of: 1) tensor index e.g. t[0], t[2] 2) tensor slice e.g. t[0:10:2], t[:-1], t[3:]
Example usage:
◆ TensorKeyMode
Enumerator |
---|
Index | |
Slice | |
IndexTensor | |
◆ TensorKey()
open3d::TensorKey::TensorKey |
( |
TensorKeyMode |
mode, |
|
|
int64_t |
index, |
|
|
int64_t |
start, |
|
|
int64_t |
stop, |
|
|
int64_t |
step, |
|
|
bool |
start_is_none, |
|
|
bool |
stop_is_none, |
|
|
bool |
step_is_none, |
|
|
const Tensor & |
index_tensor |
|
) |
| |
|
protected |
The fully specified constructor shall not be called directly. Use the factory functions instead.
◆ AssertMode()
◆ GetIndex()
int64_t open3d::TensorKey::GetIndex |
( |
| ) |
const |
|
inline |
◆ GetIndexTensor()
std::shared_ptr< Tensor > open3d::TensorKey::GetIndexTensor |
( |
| ) |
const |
◆ GetMode()
Getters will check the TensorKeyMode.
◆ GetStart()
int64_t open3d::TensorKey::GetStart |
( |
| ) |
const |
|
inline |
◆ GetStartIsNone()
bool open3d::TensorKey::GetStartIsNone |
( |
| ) |
const |
|
inline |
◆ GetStep()
int64_t open3d::TensorKey::GetStep |
( |
| ) |
const |
|
inline |
◆ GetStepIsNone()
bool open3d::TensorKey::GetStepIsNone |
( |
| ) |
const |
|
inline |
◆ GetStop()
int64_t open3d::TensorKey::GetStop |
( |
| ) |
const |
|
inline |
◆ GetStopIsNone()
bool open3d::TensorKey::GetStopIsNone |
( |
| ) |
const |
|
inline |
◆ Index()
TensorKey open3d::TensorKey::Index |
( |
int64_t |
index | ) |
|
|
static |
◆ IndexTensor()
◆ Slice() [1/9]
TensorKey open3d::TensorKey::Slice |
( |
int64_t |
start, |
|
|
int64_t |
stop, |
|
|
int64_t |
step |
|
) |
| |
|
static |
◆ Slice() [2/9]
◆ Slice() [3/9]
◆ Slice() [4/9]
◆ Slice() [5/9]
◆ Slice() [6/9]
◆ Slice() [7/9]
◆ Slice() [8/9]
◆ Slice() [9/9]
TensorKey open3d::TensorKey::Slice |
( |
int64_t |
start, |
|
|
int64_t |
stop, |
|
|
int64_t |
step, |
|
|
bool |
start_is_none, |
|
|
bool |
stop_is_none, |
|
|
bool |
step_is_none |
|
) |
| |
|
staticprotected |
The fully specifiec slice factory shall not be called directly.
◆ UpdateWithDimSize()
TensorKey open3d::TensorKey::UpdateWithDimSize |
( |
int64_t |
dim_size | ) |
const |
When dim_size is know, convert the slice object such that start_is_none_ == stop_is_none_ == step_is_none_ == false E.g. if t.shape == (5,), t[:4]: before compute: Slice(None, 4, None) after compute : Slice( 0, 4, 1) E.g. if t.shape == (5,), t[1:]: before compute: Slice( 1, None, None) after compute : Slice( 1, 5, 1)
◆ index_
int64_t open3d::TensorKey::index_ = 0 |
◆ index_tensor_
std::shared_ptr<Tensor> open3d::TensorKey::index_tensor_ |
◆ mode_
Depending on the mode, some properties may or may not be used.
◆ start_
int64_t open3d::TensorKey::start_ = 0 |
◆ start_is_none_
bool open3d::TensorKey::start_is_none_ = false |
◆ step_
int64_t open3d::TensorKey::step_ = 0 |
◆ step_is_none_
bool open3d::TensorKey::step_is_none_ = false |
◆ stop_
int64_t open3d::TensorKey::stop_ = 0 |
◆ stop_is_none_
bool open3d::TensorKey::stop_is_none_ = false |
The documentation for this class was generated from the following files: