sciai.context

MindSpore context module, which contains card selection, platform recognition, etc.

API Name

Description

Supported Platforms

sciai.context.init_project

Initialize one project with context setting, random seed setting, directory creation and log level setting.

GPU CPU Ascend

sciai.context.set_context_auto

Automatically set context as given mode, recognize platform.

GPU CPU Ascend