Get Tensor

__get_tensor__(self, out_data: Union[np.ndarray, bytes])

Description

This method copies the output tensor data from the device to the provided output data array.

Parameters

  • out_data (Union[np.ndarray, bytes]): output buffer to be updated

Returns

None

Raises

  • Exception: If the input data is None.

Usage

1out_tensor = np.zeros(2856000, dtype=np.uint8)
2device_interface.__get_tensor__(out_tensor)