Skip to content

Commit 01653db

Browse files
committed
Missed clip-mode arg for repo train script
1 parent 4f49b94 commit 01653db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

train.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@
116116
help='weight decay (default: 0.0001)')
117117
parser.add_argument('--clip-grad', type=float, default=None, metavar='NORM',
118118
help='Clip gradient norm (default: None, no clipping)')
119-
119+
parser.add_argument('--clip-mode', type=str, default='norm',
120+
help='Gradient clipping mode. One of ("norm", "value", "agc")')
120121

121122

122123
# Learning rate schedule parameters

0 commit comments

Comments
 (0)