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:
  • dtypeDataType The data type of this buffer.
  • nbytesint Total bytes consumed by the elements of the buffer.