SetPlacement
Description
Sets the placement of a tensor.
Prototype
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
Restrictions
None
Example
auto addr = reinterpret_cast<void *>(0x10); TensorData td(addr, nullptr); auto td_place = td.SetPlacement(kOnHost);
Parent topic: TensorData