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