Skip to content

Commit 3ad009f

Browse files
committed
增加adamw, adam, sgd优化器
1 parent cba6ed0 commit 3ad009f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CIFAR10_code/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
parser.add_argument('--epochs', type = int, default=20, help = 'Epochs')
2828
parser.add_argument('--resume', '-r', action='store_true', help='resume from checkpoint')
2929
parser.add_argument('--patience', '-p', type = int, default=7, help='patience for Early stop')
30-
parser.add_argument('--optim','-o',type = str, choices = ['sgd','adam','adamw'],help = 'choose optimizer')
30+
parser.add_argument('--optim','-o',type = str, choices = ['sgd','adam','adamw'], default = 'adamw', help = 'choose optimizer')
3131

3232
args = parser.parse_args()
3333

0 commit comments

Comments
 (0)