vpi.MemType

class vpi.MemType

Set a memory type for container access.

To access the content of a container, e.g. an image, the memory type of the access must be provided. There are two ways of setting the memory type:

  1. Define it as an argument to an access method, e.g. vpi.Container.to();

  2. Define it by using a specific access method, e.g. vpi.Container.cpu().

Enumeration values

vpi.MemType.CPU

The data is in the CPU memory.

vpi.MemType.CUDA

The data is in the CUDA memory.