SetPlacement
Description
Sets the position for storing tensor data.
Prototype
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: 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.
Restrictions
None.
Parent topic: Tensor