1) I've replaced your print statements with tf.logging calls, which integrate with Google's logs systems.
2) I added comments and fixed a few lint errors. This included renaming a few variables that are also Python keywords.
3) I formatted the code to follow Google's standard: https://github.com/google/yapf
4) I added a Bazel BUILD rule.
5) I updated invocation instructions.
6) I updated the code so it works in Python 2 and 3. Google is still on (a highly customized version of) Python 2
1) I've replaced your print statements with tf.logging calls, which integrate with Google's logs systems. 2) I added comments and fixed a few lint errors. This included renaming a few variables that are also Python keywords. 3) I formatted the code to follow Google's standard: https://github.com/google/yapf 4) I added a Bazel BUILD rule. 5) I updated invocation instructions. 6) I updated the code so it works in Python 2 and 3. Google is still on (a highly customized version of) Python 2