SetPlacement

Function Usage

Sets the position for storing tensor data.

Prototype

1
graphStatus SetPlacement(const ge::Placement &placement)

Parameters

Parameter

Input/Output

Description

placement

Input

Value of the data address to be set.

The enumerated values are defined as follows:

1
2
3
4
enum Placement {
  kPlacementHost = 0,   // host data addr
  kPlacementDevice = 1, // device data addr
};

Returns

graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.

Exception Handling

None

Constraints

None