GetDeviceId 函数功能用于获取Tensor的设备号。 函数原型int32_t TensorBase::GetDeviceId() const; 返回参数说明 数据结构 说明 int32_t 返回设备号。 父主题: TensorBase