Fixed bug which caused overwrite_cache to always be True (#19000)

* fixed bug which caused overwrite_cache to always be True (#18967).

* reformatting changes
This commit is contained in:
Rahul A R
2022-09-13 11:29:48 -04:00
committed by GitHub
parent 420f6c5ee3
commit 00fc9217d1
7 changed files with 7 additions and 9 deletions

View File

@@ -232,7 +232,7 @@ def parse_args():
),
)
parser.add_argument(
"--overwrite_cache", type=bool, default=False, help="Overwrite the cached training and evaluation sets"
"--overwrite_cache", action="store_true", help="Overwrite the cached training and evaluation sets"
)
parser.add_argument(
"--max_predict_samples",

View File

@@ -253,7 +253,7 @@ def parse_args():
),
)
parser.add_argument(
"--overwrite_cache", type=bool, default=False, help="Overwrite the cached training and evaluation sets"
"--overwrite_cache", action="store_true", help="Overwrite the cached training and evaluation sets"
)
parser.add_argument(
"--max_predict_samples",