openphilanthropy / unrestricted-adversarial-examples

Contest Proposal and infrastructure for the Unrestricted Adversarial Examples Challenge
Apache License 2.0
329 stars 55 forks source link

Undefined name 'train_mode' in train_two_class_mnist.py #29

Closed cclauss closed 6 years ago

cclauss commented 6 years ago

flake8 testing of https://github.com/google/unrestricted-adversarial-examples on Python 3.7.0

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./unrestricted-advex/unrestricted_advex/mnist_baselines/train_two_class_mnist.py:15:10: F821 undefined name 'train_mode'
  assert train_mode in ['vanilla', 'adversarial']
         ^
1     F821 undefined name 'train_mode'
1
carlini commented 6 years ago

Whoops. Fixed.