mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
Add "-log-to-file" argument
Add "-log-to-file" argument to switch between saving/ not saving logs
This commit is contained in:
@@ -72,6 +72,13 @@ class AttackCommand(TextAttackCommand):
|
||||
help="A directory to output results to.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--log-to-file",
|
||||
"-l",
|
||||
help="Save logs to TextAttack/outputs/~",
|
||||
action="store_true",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--enable-visdom", action="store_true", help="Enable logging to visdom."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user