Closed cclauss closed 6 years ago
Thanks for the ch_mul
issue. We have fixed that.
Other syntax errors seem to be Python2 / Python3 problems. All files were updated too.
On Python 2...
flake8 testing of https://github.com/melodyguan/enas on Python 2.7.14
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./src/cifar10/general_child.py:581:51: F821 undefined name 'avg_or_pool'
raise ValueError("Unknown pool {}".format(avg_or_pool))
^
./src/ptb/ptb_enas_child.py:170:44: F821 undefined name 'eval_set'
print("{}_total_loss: {:<6.2f}".format(eval_set, total_loss))
^
./src/ptb/ptb_enas_child.py:171:41: F821 undefined name 'eval_set'
print("{}_log_ppl: {:<6.2f}".format(eval_set, log_ppl))
^
./src/ptb/ptb_enas_child.py:172:37: F821 undefined name 'eval_set'
print("{}_ppl: {:<6.2f}".format(eval_set, ppl))
^
./src/ptb/ptb_enas_controller.py:217:47: F821 undefined name 'critic_train_op'
self.train_op = tf.group(self.train_op, critic_train_op)
^
5 F821 undefined name 'avg_or_pool'
Thanks again 👍 These issues have been fixed.
critic_train_op issue still exists.
Fixed ^_^
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics