256 Star 916 Fork 294

MindSpore / docs

【mindspore-assistant】 ImportError

Bug-Report
REJECTED
rockp4you  Opened this issue

Environment

  • Hardware Environment(GPU):

  • Software Environment:

docker pull mindspore/mindspore-gpu:1.0.0

Describe the current behavior

from mindspore import context, Model, load_checkpoint, load_param_into_net
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'load_checkpoint' from 'mindspore' (/usr/local/python-3.7.5/lib/python3.7/site-packages/mindspore/init.py)

Attachments
5518576 mindspore ci 1587902139 total 3 participants

Comments (2)

5518576 mindspore ci 1587902139
mindspore-ci-bot 2020-11-25 16:06 member

Hey rock4you, Welcome to MindSpore Community.
All of the projects in MindSpore Community are maintained by @mindspore-ci-bot .
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/mindspore/community/blob/master/command.md to find the details.

TingWang 2020-11-26 09:27 member

Sorry,this import mode is supported only by the master version.

For version 1.0.0, please see https://www.mindspore.cn/tutorial/training/en/r1.0/use/save_model.html#export-onnx-model.

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
1
https://gitee.com/mindspore/docs.git
git@gitee.com:mindspore/docs.git
mindspore
docs
docs

Search