GetDeviceId
Function Usage
Obtains the device ID of a tensor.
Prototype
1 | int32_t TensorBase::GetDeviceId() const; |
Response Parameters
Data Structure |
Description |
|---|---|
int32_t |
Device ID |
Parent topic: TensorBase
Obtains the device ID of a tensor.
1 | int32_t TensorBase::GetDeviceId() const; |
Data Structure |
Description |
|---|---|
int32_t |
Device ID |