chingyaoc / photo-editing-tensorflow

Photo Optimizing Adversarial Net with Policy Gradient Method
https://jameschuanggg.github.io/data/photo-optimizing-adversarial.pdf
MIT License
54 stars 12 forks source link

AttributeError: 'Normal' object has no attribute 'sample_n' #3

Open Steve--Hunter opened 6 years ago

Steve--Hunter commented 6 years ago

Complete error message: File "main.py", line 76, in tf.app.run() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "main.py", line 62, in main trainable=True) File "/home/steve/photo-editing-tensorflow/networks/cnn.py", line 61, in init self.action = tf.squeeze(self.normal_dist.sample_n(1)) AttributeError: 'Normal' object has no attribute 'sample_n'