We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f2c305 commit b3de39cCopy full SHA for b3de39c
examples/lienet/task.py
@@ -1,7 +1,6 @@
1
#!/usr/bin/env python3
2
import argparse
3
import os
4
-import sys
5
import tensorflow as tf
6
import numpy as np
7
@@ -14,8 +13,8 @@
14
13
VAL_SPLIT = 0.2
15
16
17
-def get_args(args):
18
- parser = argparse.ArgumentParser(args)
+def get_args():
+ parser = argparse.ArgumentParser()
19
parser.add_argument(
20
'--job-dir', type=str, required=True, help='checkpoint dir'
21
)
@@ -91,5 +90,4 @@ def train_and_evaluate(args):
91
90
92
if __name__ == "__main__":
93
tf.get_logger().setLevel("INFO")
94
- argv = sys.argv[1:]
95
- train_and_evaluate(get_args(argv))
+ train_and_evaluate(get_args())
0 commit comments