vpi.Container

class vpi.Container

The container base class.

The container class is the base class of three types of containers: vpi.Image, vpi.Array and vpi.Pyramid. The methods listed below can be used by any container class, providing different ways to access their contents.

It has an internal class named vpi.Container.Lock to represent the locked container.

Hint

The vpi.Container.Lock class is used automatically behind the scenes to allow access to the container data using the as of a with statement.

Methods

cpu(self)

Get the container data in CPU.

cuda(self)

Get the container data in CUDA.

lock(-> vpi.Container.Lock)

Lock the container data.

lock_cpu(self[, mode])

Lock the container data in CPU.

lock_cuda(self[, mode])

Lock the container data in CUDA.

rlock(self, memtype)

Lock the container data for read access.

rlock_cpu(self)

Lock the container data for read access in CPU.

rlock_cuda(self)

Lock the container data for read access in CUDA.

rwlock(self, memtype)

Lock the container data for read-and-write access.

rwlock_cpu(self)

Lock the container data for read-and-write access in CPU.

rwlock_cuda(self)

Lock the container data for read-and-write access in CUDA.

to(self, memtype)

Get the container data.

wlock(self, memtype)

Lock the container data for write access.

wlock_cpu(self)

Lock the container data for write access in CPU.

wlock_cuda(self)

Lock the container data for write access in CUDA.