vpi.Backend

class vpi.Backend

Set a backend (unit of processing) to run an algorithm.

All algorithms require a backend where it will be executed. There are two ways of setting the backend:

  1. Define it as an argument to the algorithm call;

  2. Define it via a with statement, where the backend is defined for all algorithms called within that with statement.

Enumeration values

vpi.Backend.CPU

Use the CPU for processing.

vpi.Backend.CUDA

Use the GPU for processing.

vpi.Backend.PVA

Use the PVA on Tegra for processing.

vpi.Backend.VIC

Use the VIC on Tegra for processing.

vpi.Backend.OFA

Use the OFA on Tegra for processing.

vpi.Backend.NVENC

Use the NvENC on Tegra for processing.

vpi.Backend.DEFAULT

Invalid backend, used when no backend is set.

vpi.Backend.AVAILABLE

List of backends available as an OR-based field.

Hint

Backends can also be submitted to bit-wise operations, e.g. vpi.Backend.NVENC & vpi.Backend.AVAILABLE, useful when querying if a particular backend is available.