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