get_data

Applicable Products

All processors

Function Usage

Obtains tensor data.

Prototype

1
get_data() -> TensorLike

Parameters

None

Returns

TensorLike Type tensor data

Restrictions

If the obtaining fails, RuntimeError is thrown.

TensorLike Type

TensorLike is a type alias that represents tensor-like objects:

  • Single number (int or float)
  • Numeric list (nested list)

Definition:

1
TensorLike = Union[int, float, List['TensorLike']]