GetDeviceId
Function Usage
Obtains the device ID of a tensor.
Prototype
int32_t GetDeviceId() const;
Return Parameter Description
Data Structure |
Description |
|---|---|
tensor |
Returns the device ID, which is of the int type. |
Parent topic: TensorBase
Obtains the device ID of a tensor.
int32_t GetDeviceId() const;
Data Structure |
Description |
|---|---|
tensor |
Returns the device ID, which is of the int type. |