Typo in variable name: BETA --> self.BETA (#16666)
authorcclauss <cclauss@bluewin.ch>
Wed, 7 Feb 2018 06:54:21 +0000 (07:54 +0100)
committerGunhan Gulsoy <gunan@google.com>
Wed, 7 Feb 2018 06:54:21 +0000 (22:54 -0800)
commit8aa14cd682053e1e643f0a74ec25cf3b87bf2712
treec023260d10310e385d1c9517412ddca0b19d6b64
parent39f499b18ad2c2aa1b96b793d5e2404ba765b36f
Typo in variable name: BETA --> self.BETA (#16666)

__BETA__ is defined on line 118 as a class member so it can only be accessed via __self__ or via the __ElasticAverageOptimizer__.

flake8 testing of https://github.com/tensorflow/tensorflow

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./tensorflow/contrib/opt/python/training/elastic_average_optimizer.py:153:27: F821 undefined name 'BETA'
      self._moving_rate = BETA / communication_period / num_worker
                          ^
```
tensorflow/contrib/opt/python/training/elastic_average_optimizer.py