Class Ascend910DeviceInfo

Inheritance Relationships

Base Type

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.