#915 Cannot find reference 'mstorch_enable' in '__init__.py'

Closed
created 2 weeks ago by Herio · 4 comments
Herio commented 2 weeks ago
无法引入替换导入模块路径。 Windows11+Python3.9+conda mindspore 2.2.13 mindtorch 0.2.1 ![image](/attachments/bb17fcdf-0512-4274-ac05-fbc797e83b66)
Herio commented 2 weeks ago
Poster
@frelam
frelam commented 2 weeks ago
Collaborator
> 无法引入替换导入模块路径。 > Windows11+Python3.9+conda > mindspore 2.2.13 > mindtorch 0.2.1 > ![image](/attachments/bb17fcdf-0512-4274-ac05-fbc797e83b66) 您好。 该“mstorch_enable”功能, 在mindtorch 0.2.1 上未支持, 所以会报以上错误。 当前有两种方式支持该功能: 1. 更新到mindspore 2.3最新版本, 下载mindtorch ‘master’分支, 然后通过源码安装。 2. 仍然采用mindspore 2.2版本, 下载mindtorch ‘r0.3_import’分支,然后通过源码安装。 但由于该mindtorch分支和mindspore 2.2没有完全匹配, 可能存在部分特性和接口执行异常的情况。
Herio commented 2 weeks ago
Poster
> > 无法引入替换导入模块路径。 > > Windows11+Python3.9+conda > > mindspore 2.2.13 > > mindtorch 0.2.1 > > ![image](/attachments/bb17fcdf-0512-4274-ac05-fbc797e83b66) > > 您好。 该“mstorch_enable”功能, 在mindtorch 0.2.1 上未支持, 所以会报以上错误。 > 当前有两种方式支持该功能: > 1. 更新到mindspore 2.3最新版本, 下载mindtorch ‘master’分支, 然后通过源码安装。 > 2. 仍然采用mindspore 2.2版本, 下载mindtorch ‘r0.3_import’分支,然后通过源码安装。 但由于该mindtorch分支和mindspore 2.2没有完全匹配, 可能存在部分特性和接口执行异常的情况。 > > > 好的谢谢,但是目前Mindspore好像没有发布2.3.0版本。最新Nightly版本为:mindspore-dev 2.2.0.dev20240317。
frelam commented 2 weeks ago
Collaborator
是的, 如果是这样的话, 那需要等待mindspore 2.3的发布。 在您当前使用的版本的情况下, 可以用方式二进行修改, 可以参考下面链接中的“方式二”。 https://mindtorch.readthedocs.io/zh-cn/latest/docs/User_Guide_Import.html
Erpim closed this issue 1 week ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.