hi_mpi_vi_get_dev_attr

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Obtains the attributes of a VI device.

Restrictions

If the attributes of a VI device are not set, an error code indicating failure is returned after this API is called.

Prototype

hi_s32 hi_mpi_vi_get_dev_attr(hi_vi_dev vi_dev, hi_vi_dev_attr *dev_attr)

Parameters

Parameter

Input/Output

Description

vi_dev

Input

VI device ID.

Value range: [0, 4)

dev_attr

Output

Pointer to the attributes of the VI device.

Returns