Skip to content

Commit e7b21bf

Browse files
dwightjltfboyd
authored andcommitted
absl_app.run() fails without including main as an argument (tensorflow#6940)
After the change (https://github.com/tensorflow/models/pull/6846/files#diff-965780bf33f2aeca41a33f8eba197c79) I receive the following error: File "./models/official/mnist/mnist_tpu.py", line 202, in <module> absl_app.run() TypeError: run() missing 1 required positional argument: 'main' I added main as an argument and it seems to be working fine now.
1 parent 69e2e3f commit e7b21bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

official/mnist/mnist_tpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,4 @@ def main(argv):
198198

199199

200200
if __name__ == "__main__":
201-
absl_app.run()
201+
absl_app.run(main)

0 commit comments

Comments
 (0)