parse_known_args: module-level parser must tolerate importers' argv
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -51,7 +51,7 @@ ap.add_argument("--deepk", type=int, default=0,
|
||||
ap.add_argument("--bptt", type=int, default=0,
|
||||
help="truncated BPTT: grads only through last N iterations")
|
||||
ap.add_argument("--lr", type=float, default=1e-3)
|
||||
ARGS = ap.parse_args()
|
||||
ARGS, _ = ap.parse_known_args()
|
||||
SEED = ARGS.seed
|
||||
LR = ARGS.lr
|
||||
SUFFIX = ((f"_s{SEED}" if SEED else "")
|
||||
|
||||
Reference in New Issue
Block a user