Skip to content

Commit

Permalink
Fix: Fix the expression type error and changge in to float.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoningpi committed Sep 22, 2023
1 parent 6297617 commit 2ca7449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def main(args):
# Option: gelu/silu/relu/relu6/lrelu
parser.add_argument("--act", type=str, default="gelu")
# Learning rate (needed)
parser.add_argument("--lr", type=int, default=3e-4)
parser.add_argument("--lr", type=float, default=3e-4)
# Learning rate function (needed)
# Option: linear/cosine/warmup_cosine
parser.add_argument("--lr_func", type=str, default="")
Expand Down

0 comments on commit 2ca7449

Please sign in to comment.