Definition at line 70 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
Public Member Functions | |
| template<typename T > | |
| T * | ptr () const |
| void * | ptr () const |
| int64_t | size (int index) const |
| size_t | bytes () const |
| bool | empty () const |
| DataType | dtype () const |
| bool | device () const |
| void | reference (void *data, std::vector< int64_t > shape, DataType dtype, bool device=true) |
| void | to_device_ (void *stream=nullptr) |
| void | to_host_ (void *stream=nullptr) |
| Tensor | to_device (void *stream=nullptr) const |
| Tensor | to_host (void *stream=nullptr) const |
| Tensor | to_float (void *stream=nullptr) const |
| Tensor | to_half (void *stream=nullptr) const |
| void | create_ (std::vector< int64_t > shape, DataType dtype, bool device=true) |
| bool | save (const std::string &file, void *stream=nullptr) const |
| void | print (const char *prefix="Tensor", size_t offset=0, size_t num_per_line=10, size_t lines=1) const |
| void | memset (unsigned char value=0, void *stream=nullptr) |
| void | arange (void *stream=nullptr) |
| void | release () |
| void | self_byte_check (size_t type_bytes) const |
| Tensor | clone (void *stream) const |
| void | copy_from_host (const void *data, void *stream) |
| void | copy_from_device (const void *data, void *stream) |
| unsigned int | offset (unsigned int idim) const |
| Tensor ()=default | |
| Tensor (std::vector< int64_t > shape, DataType dtype, bool device=true) | |
| template<typename T > | |
| T * | ptr () const |
| void * | ptr () const |
| int64_t | size (int index) const |
| size_t | bytes () const |
| bool | empty () const |
| DataType | dtype () const |
| bool | device () const |
| void | reference (void *data, std::vector< int64_t > shape, DataType dtype, bool device=true) |
| void | to_device_ (void *stream=nullptr) |
| void | to_host_ (void *stream=nullptr) |
| Tensor | to_device (void *stream=nullptr) const |
| Tensor | to_host (void *stream=nullptr) const |
| Tensor | to_float (void *stream=nullptr) const |
| Tensor | to_half (void *stream=nullptr) const |
| void | create_ (std::vector< int64_t > shape, DataType dtype, bool device=true) |
| bool | save (const std::string &file, void *stream=nullptr) const |
| void | print (const char *prefix="Tensor", size_t offset=0, size_t num_per_line=10, size_t lines=1) const |
| void | memset (unsigned char value=0, void *stream=nullptr) |
| void | arange (void *stream=nullptr) |
| void | release () |
| void | self_byte_check (size_t type_bytes) const |
| Tensor | clone (void *stream) const |
| void | copy_from_host (const void *data, void *stream) |
| void | copy_from_device (const void *data, void *stream) |
| unsigned int | offset (unsigned int idim) const |
| Tensor ()=default | |
| Tensor (std::vector< int64_t > shape, DataType dtype, bool device=true) | |
Static Public Member Functions | |
| static Tensor | create (std::vector< int64_t > shape, DataType dtype, bool device=true) |
| static Tensor | from_data_reference (void *data, std::vector< int64_t > shape, DataType dtype, bool device=true) |
| static Tensor | from_data (void *data, std::vector< int64_t > shape, DataType dtype, bool device=true, void *stream=nullptr) |
| static Tensor | load (const std::string &file, bool device=true, void *stream=nullptr) |
| static Tensor | loadbinary (const std::string &file, std::vector< int64_t > shape, DataType dtype, bool device=true) |
| static bool | save (const Tensor &tensor, const std::string &file, void *stream=nullptr) |
| static Tensor | create (std::vector< int64_t > shape, DataType dtype, bool device=true) |
| static Tensor | from_data_reference (void *data, std::vector< int64_t > shape, DataType dtype, bool device=true) |
| static Tensor | from_data (void *data, std::vector< int64_t > shape, DataType dtype, bool device=true, void *stream=nullptr) |
| static Tensor | load (const std::string &file, bool device=true, void *stream=nullptr) |
| static Tensor | loadbinary (const std::string &file, std::vector< int64_t > shape, DataType dtype, bool device=true) |
| static bool | save (const Tensor &tensor, const std::string &file, void *stream=nullptr) |
Data Fields | |
| std::vector< int64_t > | shape |
| std::shared_ptr< TensorData > | data |
| size_t | numel = 0 |
| size_t | ndim = 0 |
|
default |
| ds3d::v2xinfer::Tensor::Tensor | ( | std::vector< int64_t > | shape, |
| DataType | dtype, | ||
| bool | device = true |
||
| ) |
|
default |
| ds3d::v2xinfer::Tensor::Tensor | ( | std::vector< int64_t > | shape, |
| DataType | dtype, | ||
| bool | device = true |
||
| ) |
| void ds3d::v2xinfer::Tensor::arange | ( | void * | stream = nullptr | ) |
| void ds3d::v2xinfer::Tensor::arange | ( | void * | stream = nullptr | ) |
|
inline |
Definition at line 84 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data.
|
inline |
Definition at line 84 of file 9.0/sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data.
| Tensor ds3d::v2xinfer::Tensor::clone | ( | void * | stream | ) | const |
| Tensor ds3d::v2xinfer::Tensor::clone | ( | void * | stream | ) | const |
| void ds3d::v2xinfer::Tensor::copy_from_device | ( | const void * | data, |
| void * | stream | ||
| ) |
| void ds3d::v2xinfer::Tensor::copy_from_device | ( | const void * | data, |
| void * | stream | ||
| ) |
| void ds3d::v2xinfer::Tensor::copy_from_host | ( | const void * | data, |
| void * | stream | ||
| ) |
| void ds3d::v2xinfer::Tensor::copy_from_host | ( | const void * | data, |
| void * | stream | ||
| ) |
|
static |
|
static |
| void ds3d::v2xinfer::Tensor::create_ | ( | std::vector< int64_t > | shape, |
| DataType | dtype, | ||
| bool | device = true |
||
| ) |
| void ds3d::v2xinfer::Tensor::create_ | ( | std::vector< int64_t > | shape, |
| DataType | dtype, | ||
| bool | device = true |
||
| ) |
|
inline |
Definition at line 87 of file 9.0/sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data.
|
inline |
Definition at line 87 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data.
|
inline |
Definition at line 86 of file 9.0/sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data, and ds3d::v2xinfer::None.
|
inline |
Definition at line 86 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data, and ds3d::v2xinfer::None.
|
inline |
Definition at line 85 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data.
|
inline |
Definition at line 85 of file 9.0/sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void ds3d::v2xinfer::Tensor::memset | ( | unsigned char | value = 0, |
| void * | stream = nullptr |
||
| ) |
| void ds3d::v2xinfer::Tensor::memset | ( | unsigned char | value = 0, |
| void * | stream = nullptr |
||
| ) |
| unsigned int ds3d::v2xinfer::Tensor::offset | ( | unsigned int | idim | ) | const |
| unsigned int ds3d::v2xinfer::Tensor::offset | ( | unsigned int | idim | ) | const |
| void ds3d::v2xinfer::Tensor::print | ( | const char * | prefix = "Tensor", |
| size_t | offset = 0, |
||
| size_t | num_per_line = 10, |
||
| size_t | lines = 1 |
||
| ) | const |
| void ds3d::v2xinfer::Tensor::print | ( | const char * | prefix = "Tensor", |
| size_t | offset = 0, |
||
| size_t | num_per_line = 10, |
||
| size_t | lines = 1 |
||
| ) | const |
|
inline |
Definition at line 77 of file 9.0/sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data, and self_byte_check().
|
inline |
Definition at line 77 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data, and self_byte_check().
|
inline |
Definition at line 81 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data.
|
inline |
Definition at line 81 of file 9.0/sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References data.
| void ds3d::v2xinfer::Tensor::reference | ( | void * | data, |
| std::vector< int64_t > | shape, | ||
| DataType | dtype, | ||
| bool | device = true |
||
| ) |
| void ds3d::v2xinfer::Tensor::reference | ( | void * | data, |
| std::vector< int64_t > | shape, | ||
| DataType | dtype, | ||
| bool | device = true |
||
| ) |
| void ds3d::v2xinfer::Tensor::release | ( | ) |
| void ds3d::v2xinfer::Tensor::release | ( | ) |
| bool ds3d::v2xinfer::Tensor::save | ( | const std::string & | file, |
| void * | stream = nullptr |
||
| ) | const |
| bool ds3d::v2xinfer::Tensor::save | ( | const std::string & | file, |
| void * | stream = nullptr |
||
| ) | const |
|
static |
|
static |
| void ds3d::v2xinfer::Tensor::self_byte_check | ( | size_t | type_bytes | ) | const |
Referenced by ptr().
| void ds3d::v2xinfer::Tensor::self_byte_check | ( | size_t | type_bytes | ) | const |
|
inline |
Definition at line 83 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References shape.
|
inline |
Definition at line 83 of file 9.0/sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
References shape.
| Tensor ds3d::v2xinfer::Tensor::to_device | ( | void * | stream = nullptr | ) | const |
| Tensor ds3d::v2xinfer::Tensor::to_device | ( | void * | stream = nullptr | ) | const |
| void ds3d::v2xinfer::Tensor::to_device_ | ( | void * | stream = nullptr | ) |
| void ds3d::v2xinfer::Tensor::to_device_ | ( | void * | stream = nullptr | ) |
| Tensor ds3d::v2xinfer::Tensor::to_float | ( | void * | stream = nullptr | ) | const |
| Tensor ds3d::v2xinfer::Tensor::to_float | ( | void * | stream = nullptr | ) | const |
| Tensor ds3d::v2xinfer::Tensor::to_half | ( | void * | stream = nullptr | ) | const |
| Tensor ds3d::v2xinfer::Tensor::to_half | ( | void * | stream = nullptr | ) | const |
| Tensor ds3d::v2xinfer::Tensor::to_host | ( | void * | stream = nullptr | ) | const |
| Tensor ds3d::v2xinfer::Tensor::to_host | ( | void * | stream = nullptr | ) | const |
| void ds3d::v2xinfer::Tensor::to_host_ | ( | void * | stream = nullptr | ) |
| void ds3d::v2xinfer::Tensor::to_host_ | ( | void * | stream = nullptr | ) |
| std::shared_ptr< TensorData > ds3d::v2xinfer::Tensor::data |
| size_t ds3d::v2xinfer::Tensor::ndim = 0 |
Definition at line 74 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
| size_t ds3d::v2xinfer::Tensor::numel = 0 |
Definition at line 73 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
| std::vector< int64_t > ds3d::v2xinfer::Tensor::shape |
Definition at line 71 of file sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp.
Referenced by size().