From 01653db104c8d60d2bac643b169c04139f3ae668 Mon Sep 17 00:00:00 2001 From: Ross Wightman Date: Mon, 15 Feb 2021 23:27:16 -0800 Subject: [PATCH] Missed clip-mode arg for repo train script --- train.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/train.py b/train.py index b787a88c..9abcfed3 100755 --- a/train.py +++ b/train.py @@ -116,7 +116,8 @@ parser.add_argument('--weight-decay', type=float, default=0.0001, help='weight decay (default: 0.0001)') parser.add_argument('--clip-grad', type=float, default=None, metavar='NORM', help='Clip gradient norm (default: None, no clipping)') - +parser.add_argument('--clip-mode', type=str, default='norm', + help='Gradient clipping mode. One of ("norm", "value", "agc")') # Learning rate schedule parameters