×
分享到微信

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

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

使用docker镜像中遇到这个问题如何解决 已完结 山中无岁月2022-05-19 16:38:57 回复 2 查看 技术答疑
使用docker镜像中遇到这个问题如何解决
分享到:

>>> import tensorflow as tf

>>> tf.config.experimental_list_devices()

Traceback (most recent call last):

  File "

  File "/usr/local/python3/lib/python3.7/site-packages/tensorflow_core/python/eager/context.py", line 1698, in list_devices

    ensure_initialized()

  File "/usr/local/python3/lib/python3.7/site-packages/tensorflow_core/python/eager/context.py", line 1581, in ensure_initialized

    context().ensure_initialized()

  File "/usr/local/python3/lib/python3.7/site-packages/tensorflow_core/python/eager/context.py", line 495, in ensure_initialized

    context_handle = pywrap_tensorflow.TFE_NewContext(opts)

tensorflow.python. work.errors_impl.AbortedError: failed call to cnInit: CN_ERROR_OPERATING_SYSTEM: "OS call failed or operation not supported on this OS"

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