76 Star 221 Fork 167

Ascend / modelzoo

 / 详情

【众智】【西工大】【SHAP】迁移跑不到NPU上

DONE
Bug-Report
Opened this issue  
2021-12-16 18:58

一、问题现象(附报错日志上下文):
SHAP使用的是keras,我手动迁移成tensorflow.keras后,又按照教程(https://support.huaweicloud.com/tfmigr-cann502alpha5training/atlasmprtg_13_0014.html ) 添加了代码。然后执行,会出现动态shape的错误,随后我加上了
custom_op.parameter_map["dynamic_input"].b = True
custom_op.parameter_map["dynamic_graph_execute_mode"].s = tf.compat.as_bytes("lazy_recompile")
程序可以跑,但仍然没有出现The model has been compiled on the Ascend AI processor, current graph id is这样证明程序跑到NPU上的日志。

二、软件版本:
-- CANN 5.0.3
--Tensorflow 1.15
--Python 3.7

三、测试步骤:

四、日志信息:
最后修改完后的日志为(此时无报错,可以训练,但跑不到NPU上):
URL:
https://e-share.obs-website.cn-north-1.myhuaweicloud.com?token=ZooFr93nESyM+SLxMFyJV9FzVnc8iEcIdAadkWaJmJKff/6hQoZtfsCzUSAdbnW1TPNhG31hUTB1QDRVDvLJaFQKI4SeLCM4zHCdPqKSEncxBAh/Wu41B3ynGIhGw6Vz9T4eXV6tnq8KCji47wT3aodqNWYhNEUAYMr6NDMvDJ9zJ2FAoNusJqmE3Iu9aCb1ytBdpJRq7IdqM/TlkKt5WGMKE27z8teqp0Bf8loK4vo32AjQXukBiW1SKavWFYTvaCfPUxt5uh2gdS4Rcus622JZEtX2nNhojznwu+U0ADemB8I9JJX/kyeeHXsWtLCCVktq4m7EgmB9Hds9Fycep4vbYnsZWm67NRcndUKHa9m4pjWXxKVrWBxD7tGnPchgQL7hzV/Vjlo8ZsGBUJEYiDrY37Fsk2jVDXUqw6lLbgMKUu3aecy/Pljxo2czrpImL0Vmp00fo6ecPUa7N3zNphtejRpZltB9wwx7GdTYfX8VCWoCvaGDAgBQ7E7Ky/qBjPRqM69Gd8AGEFzd9or4gqigxRhBFexubWYdKESb+vZnPCqYwEb6Pzn7DMKPdm/wgBsgFXfWVD5hbC7R1Sy9Qz4O/Jg/d1ottDXzNIqFUUmyzclVrILbVQa1WW4gL92eigRA7W+SRjYouWTB26HFcA==

提取码:
123456

*有效期至: 2022/12/11 18:56:07 GMT+08:00

Comments (8)

王璇 createdBug-Report
王璇 changed description
王璇 changed description
zhujianpeng set assignee to chenhu
zhujianpeng changed issue state from TODO to Analysing
Expand operation logs

请issue附上网络脚本、数据集等OBS全链接

本地用以上脚本复现已跑在NPU上,请检查是否打印屏幕上,未写入日志

还是没有啊,这个如果是已经跑在了NPU上,那我可以提交精度pr了吗

确认精度是否达标

精度已经达标了

精度,性能达标可提pr

王璇 changed issue state from Analysing to DONE
吴定远 changed related repository from Ascend/modelzoo-his to Ascend/modelzoo

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(2)
1
https://gitee.com/ascend/modelzoo.git
git@gitee.com:ascend/modelzoo.git
ascend
modelzoo
modelzoo

Search