GetDeviceId
函数功能
用于获取Tensor的设备号。
函数原型
int32_t TensorBase::GetDeviceId() const;
返回参数说明
数据结构 |
说明 |
---|---|
tensor |
返回设备号,是一个int类型。 |
父主题: TensorBase
用于获取Tensor的设备号。
int32_t TensorBase::GetDeviceId() const;
数据结构 |
说明 |
---|---|
tensor |
返回设备号,是一个int类型。 |