IHostMemory¶
-
class
tensorrt.
IHostMemory
¶ Handles 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 object is destroyed.
This class exposes a buffer interface using Python’s buffer protocol.
Variables: - dtype –
DataType
The data type of this buffer. - nbytes –
int
Total bytes consumed by the elements of the buffer.
-
__del__
(self: tensorrt.tensorrt.IHostMemory) → None¶
-
__exit__
(exc_type, exc_value, traceback)¶ Destroy this object, freeing all memory associated with it. This should be called to ensure that the object is cleaned up properly. Equivalent to invoking
__del__()
-
__init__
¶ Initialize self. See help(type(self)) for accurate signature.
- dtype –