get_data

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

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']]