#4484 启智npu推理任务,选一个数据集时,示例训练失败

Closed
created 9 months ago by liuzx · 3 comments
liuzx commented 9 months ago
选多个数据集时也不可以训练,任务名wujm1202307111043609
liuzx self-assigned this 9 months ago
liuzx referenced this issue from a commit 9 months ago
liuzx added this to the V20230718 branch 9 months ago
liuzx added the
test
label 9 months ago
liuzx added this to the V20230718 milestone 9 months ago
wangj commented 9 months ago
Owner
仍然失败。测试任务名 wjtes202307181463197
wangj commented 9 months ago
Owner
示例代码问题。更新后可以跑成功。
wangj closed this issue 9 months ago
liuzx commented 9 months ago
Poster
使用mindspore2.0以上的镜像使用示例代码没问题,若是使用mindspore1.7或1.8,则需要改动示例代码: 将inference.py的第80行改为: model = Model(network, net_loss, net_opt, metrics={"Accuracy": Accuracy()}), 并导入包: from mindspore.nn.metrics import Accuracy
Sign in to join this conversation.
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.