Class Ascend910DeviceInfo
Defined in File context.h
Inheritance Relationships
Base Type
public mindspore::DeviceInfoContext
(Class DeviceInfoContext)
Class Documentation
-
class Ascend910DeviceInfo : public mindspore::DeviceInfoContext
Derived from DeviceInfoContext, The configuration of the model running on the Ascend910. This option is invalid for MindSpore Lite.
Public Functions
-
inline virtual enum DeviceType GetDeviceType() const override
Get the type of this DeviceInfoContext.
- Returns
Type of this DeviceInfoContext.
-
void SetDeviceID(uint32_t device_id)
Set device id.
- Parameters
device_id – [in] The device id.
-
uint32_t GetDeviceID() const
Get the device id.
- Returns
The device id.
-
inline virtual enum DeviceType GetDeviceType() const override