Could not satisfy explicit device specification '/job:worker/task:0/device:GPU:1' because no support
来源:互联网 发布:php递归99乘法表 编辑:程序博客网 时间:2024/06/10 18:52
如上图报错,说gpu没有支持的kernel。原因是应为在tensorflow中,定义在图中的op,有的只能再cup中运行,gpu中不支持。解决方法就是让op自动识别,让它选择在合适的地方运行即可。如果op中有标识的话,在运行的时候指定在cup上执行,如果无法区分的话,可以试试在sess.run的时候加入allow_soft_placement=True。
例如:sess = tf.Session(config=tf.ConfigProto(allow_soft_placement=True, log_device_placement=True))
亲测过,加上之后,就不报错。
阅读全文
0 0
- Could not satisfy explicit device specification '/job:worker/task:0/device:GPU:1' because no support
- device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/dev
- Xcode8.3.3 出现 Could not locate device support files解决办法
- Xcode :Could not locate device support files 的解决方案
- No space left on device: mod_rewrite: could not create rewrite_log_lock
- Could not initialize SDL - No available video device
- Device could not be initialized or no devices found
- [iOS Xcode8兼容] Xcode8下运行iOS7 (Could not locate device support files.)
- [iOS Xcode8兼容] Xcode8下运行iOS7 (Could not locate device support files.)
- ipmitool启动报错"Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No"
- Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/repli
- Postgresql FATAL: could not create semaphores: No space left on device
- SDL2-2.0.4出现Could not initialize SDL : No available video device
- 【yocto】run qemu:Could not initialize SDL(No available video device)
- 运行应用,Could not open: device
- Could not stop Cortex-M device!
- could not write to the device
- Explicit block device plugging
- Git四个区五个状态以及之间的变换
- POJ 1039.Pipe
- Sql--列操作
- 涂威威:第四范式经验与思考分享
- 致研究生:一定要从这3个方面审视你的研究方向
- Could not satisfy explicit device specification '/job:worker/task:0/device:GPU:1' because no support
- 简单的angular路由
- c语言实现的扫雷游戏
- bitnode bitree
- Flashsim中关于FAST算法实现的代码解析
- 哈尔滨理工大学第七届程序设计竞赛初赛(高年级组)题解
- dubbo的SPI扩展实现原理简解
- Python基础-Python2.7安装Pip
- python语法之@修饰器