Skip to content

Typo in variable name: BETA --> self.BETA - #16666

Merged
gunan merged 1 commit into
tensorflow:masterfrom
cclauss:patch-1
Feb 7, 2018
Merged

gunan merged 1 commit into
tensorflow:masterfrom
cclauss:patch-1

Conversation

@cclauss

@cclauss cclauss commented Feb 1, 2018 •

Copy link
Copy Markdown
Contributor

BETA is defined on line 118 as a class member so it can only be accessed via self or via the class name, 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
                          ^

__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
                          ^
```
@jhseu jhseu self-assigned this Feb 5, 2018
@jhseu jhseu added the kokoro:force-run Tests on submitted change label Feb 5, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 5, 2018
@jhseu jhseu added the kokoro:force-run Tests on submitted change label Feb 6, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 6, 2018
@gunan
gunan merged commit 8aa14cd into tensorflow:master Feb 7, 2018
@cclauss
cclauss deleted the patch-1 branch February 7, 2018 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants