×
分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

实验二中在补全transform_mlu.py文件时报错 gg2020-08-10 16:34:04 回复 14 查看
实验二中在补全transform_mlu.py文件时报错
分享到:

我已经在mlu_option中设置config.mlu_options.precision = "int8"



错误代码如下

 



File "transform_mlu.py", line 163, in <module>

    run_numpy_pb()

  File "transform_mlu.py", line 148, in run_numpy_pb

    ret =sess.run(output_tensor, feed_dict={input_tensor:np.int8([X]),input1:in1.astype(np.int8),input2:in2.astype(np.int8),output:out0})

  File "/opt/AICSE-demo-student/env/tensorflow-v1.10/virtualenv_mlu/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 950, in run

    run_ data_ptr)

  File "/opt/AICSE-demo-student/env/tensorflow-v1.10/virtualenv_mlu/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1173, in _run

    feed_dict_tensor, options, run_ data)

  File "/opt/AICSE-demo-student/env/tensorflow-v1.10/virtualenv_mlu/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1350, in _do_run

    run_ data)

  File "/opt/AICSE-demo-student/env/tensorflow-v1.10/virtualenv_mlu/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1370, in _do_call

    raise type(e)(node_def, op, message)

tensorflow.python. work.errors_impl.InvalidArgumentError: MLUPow only support half but now float

         [[node pow_15 (defined at transform_mlu.py:126) ]]


版权所有 © 2022 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭