coord.join(threads, stop_grace_period_secs=5) sess.close() What have you tried? https://www.tensorflow.org/versions/r0.8/how_tos/reading_data/index.html#creating-threads-to-prefetch-using-queuerunner-objects According to documentation coord.request_stop() should stop the threads but in this ...
forthreadinthreads: thread.join() # 创建协调器 coordinator=Coordinator() # 创建任务 task1=Task("Task 1") task2=Task("Task 2") # 添加任务到协调器 coordinator.add_task(task1) coordinator.add_task(task2) # 执行任务 coordinator.run_tasks() 6. 总结 coord10编程是一项有趣且有挑战性的任务。
lab_coordaddress_str, reservation_id, experiment_instance_id, client_initial_data, server_initial_data, resource_type_name):# We can stablish a politic such as using# thread pools or a queue of threads or something# like that