Skip to content

分布式训练cannot assign a device for operation PyFunc #1449

Answered by zhixiongning
zhixiongning asked this question in Q&A
Discussion options

You must be logged in to vote

我参照相关issue尝试了一些办法还是没有解决。 另外,我参考这个https://github.com/tensorflow/tensorflow/issues/52959,修改了tensorflow的版本2.2.0(我之前用的最新版2.8.0),但又遇到了grpc的错误。想问下当时这个分布式example是基于tensorflow的哪个版本运行的?谢谢

我们的CI中测试过的是tensorflow 2.5.2

谢谢,我使用2.2.0解决了这个问题
在import tensorflow之前我加了os.environ.pop('http_proxy'),os.environ.pop('https_proxy')

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sighingnow
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #1446 on April 11, 2022 03:52.