我正在尝试使用以下简单命令来测试TensorFlow的分布式计算功能:
>>> import tensorflow as tf
>>> c = tf.constant("Hello, distributed TensorFlow!")
>>> server = tf.GrpcServer.create_local_server()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'GrpcServer'
>>>
但是,正如您在上面看到的那样,它引发了一个错误,指示GrpcServer
无法找到。我已经将TensorFlow安装到“ Virtualenv”中,并且MNIST示例运行良好。如何测试TensorFlow的分布式功能?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句