Class DSPDeviceInfo
#include <context.h>
派生自DeviceInfoContext,模型运行在DSP上的配置。
公有成员函数
函数 |
云侧推理是否支持 |
端侧推理是否支持 |
|---|---|---|
x |
√ |
|
x |
√ |
|
x |
√ |
GetDeviceType
enum DeviceType GetDeviceType() const override
返回值
DeviceType::kDSP
SetDeviceID
void SetDeviceID(uint32_t device_id)
用于指定设备ID。
参数
device_id: 设备ID。
GetDeviceID
uint32_t GetDeviceID() const
返回值
已配置的设备ID。