TensorRT
7.0.0.11
|
Class to handle library allocated memory that is accessible to the user. More...
#include <NvInferRuntime.h>
Public Member Functions | |
virtual void * | data () const noexcept=0 |
A pointer to the raw data that is owned by the library. | |
virtual std::size_t | size () const noexcept=0 |
The size in bytes of the data that was allocated. | |
virtual DataType | type () const noexcept=0 |
The type of the memory that was allocated. | |
virtual void | destroy () noexcept=0 |
Destroy the allocated memory. | |
Class to handle library allocated memory that is accessible to the user.
The memory allocated via the host memory object is owned by the library and will be de-allocated when the destroy method is called.