Closed lingxiaoZHONG closed 4 years ago
I'm running into a similar message " Attempted to use a closed Session" using Ubuntu 18.04, CUDA 10, tested with tensorflow-gpu 1.13.1, 1.13.2, 1.14.0, works with CPU,
"ae_train exp_group/my_autoencoder -d" works as normal for me displaying the renderings.
I solved this problem by setting NUM_THREADS = 1 in .cfg file. But I still don't understand why using multi-thread in gpu not work.
Describe the bug
Problem Info
Exception in thread Thread-3 (and other threads): Traceback (most recent call last): File "/home//anaconda3/envs//lib/python2.7/threading.py", line 801, in bootstrap_inner self.run() File "/home//anaconda3/envs//lib/python2.7/threading.py", line 754, in run self.target(*self.args, *self.__kwargs) File "/home//.local/lib/python2.7/site-packages/auto_pose/ae/queue.py", line 66, in run__ session.run(self.enqueue_op, feed_dict) File "/home//anaconda3/envs//lib/python2.7/site-packages/tensorflow/python/client/session.py", line 900, in run run_metadata_ptr) File "/home//anaconda3/envs//lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1058, in _run raise RuntimeError('Attempted to use a closed Session.') RuntimeError: Attempted to use a closed Session.
Describe the characteristic of your environment: