get_placement

Applicable Products

All processors

Function Usage

Obtains the storage location of data.

Prototype

1
get_placement()->Placement

Parameters

None

Returns

(Placement) Storage location of the tensor data

Restrictions

  • If the return value is not a valid placement, ValueError is thrown.