".github/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "a6b22ae56d7217b71403b905c0ca645ad58a7f67"
Commit e7b21bfd authored by Dwight J Lyle's avatar Dwight J Lyle Committed by Toby Boyd
Browse files

absl_app.run() fails without including `main` as an argument (#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.
parent 69e2e3f6
...@@ -198,4 +198,4 @@ def main(argv): ...@@ -198,4 +198,4 @@ def main(argv):
if __name__ == "__main__": if __name__ == "__main__":
absl_app.run() absl_app.run(main)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment