tensorflow-in-depth icon indicating copy to clipboard operation
tensorflow-in-depth copied to clipboard

《深入理解TensorFlow》项目代码与样章

Results 6 tensorflow-in-depth issues
Sort by recently updated
recently updated
newest added

### 问题描述: 在实践5.2_best_practice.py的分布式代码当中,发现第74行的server未定义(书中也没有定义),导致运行时中出现server未定义的错误。 ### 解决办法: 翻阅书本发现,在讲创建tensorflow集群时,有过`server = tf.train.Server(cluster, job_name=FLAGS.job_name, task_index=FLAGS.task_index)`的定义,而5.2_best_practice.py里并没有。自己尝试加上之后,PS作业无异常。 ### 其他: 小小更正,也算不上什么大错误,书中的代码PS都是大写,而5.2_best_practice.py中PS为小写,如果不仔细看代码就会出错。 之前在issue中提到过这个问题,但没人回复我。所以我在此向您提出了PR。

### 问题描述: 在5.2_best_practice.py当中,第74行的server未定义(书中也没有定义),导致实践中出现server未定义的错误。 ### 解决办法: 翻阅书本发现,在讲创建tensorflow集群时,有过`server = tf.train.Server(cluster, job_name=FLAGS.job_name, task_index=FLAGS.task_index)`的定义,而5.2_best_practice.py里并没有。自己尝试加上之后,PS作业无异常。 ### 其他: 小小更正,也算不上什么大错误,书中的代码PS都是大写,而5.2_best_practice.py中PS为小写,如果不仔细看代码就会出错。

你好 书的205页 的 datasets库 不能安装了 说 不支持3.6环境 怎么办? 报错: datasets-0.0.9-cp27-none-win32.whl is not a supported wheel on this platform.

question

大佬你好! 请教下, `filename_queue=tf.train.string_input_producer(['stat.tfrecord'])` 结果如下 `WARNING:tensorflow:From :1: string_input_producer (from tensorflow.python.training.input) is deprecated and will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by `tf.data`....

78 行中的输入参数中 `worker_device` 并没有被赋值

duplicate
good first issue

在解决了上面两个issue后,按照123页运行后,还是无法启动两个gpu:worker,加一个cpu:PS分布式训练。求问命令行应该如何输入,还是代码的问题。

bug
good first issue