GetDeviceId

函数功能

获得Tensor数据所在的芯片的编号。

函数原型

1
int32_t Tensor::GetDeviceId() const;

返回参数说明

数据结构

说明

int32_t

Tensor数据所在的芯片的编号(-1代表在Host侧)。