|
triton_cpp v1.2.1
Header-only C++ wrapper for NVIDIA Triton Inference Server clients
|
Couple a Triton input descriptor with its backing storage. More...
#include <types.hpp>
Public Member Functions | |
| InputData ()=default | |
| Construct an empty input-storage descriptor. | |
| InputData (const InputData &other) | |
| Copy an input descriptor and rebind pointers into copied owned storage. | |
| InputData (InputData &&other) noexcept | |
| Move an input descriptor and preserve its storage association. | |
| InputData & | operator= (const InputData &other) |
| Copy an input descriptor while preserving storage ownership. | |
| InputData & | operator= (InputData &&other) noexcept |
| Move an input descriptor while preserving storage ownership. | |
| InputData (std::shared_ptr< triton::client::InferInput > input, std::vector< uint8_t > &&data) | |
| Construct an input backed by an owned host vector. | |
| InputData (std::shared_ptr< triton::client::InferInput > input, uint8_t *data_raw, std::size_t data_raw_size) | |
| Construct an input backed by externally owned host memory. | |
| InputData (std::shared_ptr< triton::client::InferInput > input, uint8_t *data_raw, uint8_t *device_data_raw, std::size_t data_raw_size) | |
| Construct an input backed by CUDA shared memory. | |
| bool | isHostMappable () const |
| bool | isDeviceBacked () const |
Public Attributes | |
| std::shared_ptr< triton::client::InferInput > | input |
| std::vector< uint8_t > | data |
| uint8_t * | data_raw {nullptr} |
| uint8_t * | device_data_raw {nullptr} |
| std::size_t | data_raw_size {0} |
Couple a Triton input descriptor with its backing storage.
Storage may be an owned host vector, externally owned host shared memory, or CUDA device shared memory. Pointer validity follows the lifetime of the corresponding backing allocation.
|
default |
Construct an empty input-storage descriptor.
|
inline |
Copy an input descriptor and rebind pointers into copied owned storage.
| other | Descriptor to copy. |
Definition at line 176 of file types.hpp.
|
inlinenoexcept |
Move an input descriptor and preserve its storage association.
| other | Descriptor to move from. |
Definition at line 187 of file types.hpp.
References data, data_raw, data_raw_size, device_data_raw, and input.
|
inline |
Construct an input backed by an owned host vector.
| input | Triton input descriptor. |
| data | Host buffer used to initialize this object's owned storage. |
Definition at line 233 of file types.hpp.
|
inline |
Construct an input backed by externally owned host memory.
| input | Triton input descriptor. |
| data_raw | Host buffer address. |
| data_raw_size | Buffer size in bytes. |
Definition at line 246 of file types.hpp.
|
inline |
Construct an input backed by CUDA shared memory.
| input | Triton input descriptor. |
| data_raw | Optional host address; normally nullptr for CUDA-only storage. |
| device_data_raw | CUDA device address. |
| data_raw_size | Buffer size in bytes. |
Definition at line 256 of file types.hpp.
|
inline |
Definition at line 265 of file types.hpp.
References device_data_raw.
|
inline |
Copy an input descriptor while preserving storage ownership.
Definition at line 200 of file types.hpp.
References data, data_raw, data_raw_size, device_data_raw, and input.
Move an input descriptor while preserving storage ownership.
Definition at line 213 of file types.hpp.
References data, data_raw, data_raw_size, device_data_raw, and input.
| std::vector<uint8_t> triton_cpp::InputData::data |
Owned storage used by standard host inputs.
Definition at line 161 of file types.hpp.
Referenced by InputData(), operator=(), and operator=().
| uint8_t* triton_cpp::InputData::data_raw {nullptr} |
Host-mappable buffer address, or nullptr for device-only storage.
Definition at line 163 of file types.hpp.
Referenced by InputData(), isHostMappable(), operator=(), and operator=().
| std::size_t triton_cpp::InputData::data_raw_size {0} |
Buffer size in bytes.
Definition at line 167 of file types.hpp.
Referenced by InputData(), operator=(), and operator=().
| uint8_t* triton_cpp::InputData::device_data_raw {nullptr} |
CUDA device buffer address, or nullptr for host storage.
Definition at line 165 of file types.hpp.
Referenced by InputData(), isDeviceBacked(), operator=(), and operator=().
| std::shared_ptr<triton::client::InferInput> triton_cpp::InputData::input |
Triton input descriptor.
Definition at line 159 of file types.hpp.
Referenced by InputData(), operator=(), and operator=().