SetPlacement
Function Usage
Sets the placement of a tensor.
Prototype
1 | void SetPlacement(const TensorPlacement placement) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
placement |
Input |
Tensor placement. For details about the definition of the TensorPlacement type, see TensorPlacement. |
Returns
None
Constraints
None
Examples
1 2 3 | auto addr = reinterpret_cast<void *>(0x10); TensorData td(addr, nullptr); auto td_place = td.SetPlacement(kOnHost); |
Parent topic: TensorData