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 –
DataTypeThe data type of this buffer.nbytes –
intTotal bytes consumed by the elements of the buffer.
- __buffer__(flags, /)¶
Return a buffer object that exposes the underlying memory of the object.
- __del__(self: tensorrt.tensorrt.IHostMemory) None¶
- __exit__(exc_type, exc_value, traceback)¶
Context managers are deprecated and have no effect. Objects are automatically freed when the reference count reaches 0.
- __init__(*args, **kwargs)¶
- __release_buffer__(buffer, /)¶
Release the buffer object that exposes the underlying memory of the object.