change(example/cifar): switch wd back

This commit is contained in:
sugarme 2020-07-11 08:51:09 +10:00
parent 274f419f70
commit 64c1f378c5

View File

@ -120,10 +120,9 @@ func main() {
var bestAccuracy float64
batchSize := 512
for epoch := 0; epoch < 350; epoch++ {
// opt.SetLR(learningRate(epoch))
optConfig := nn.NewSGDConfig(0.9, 0.0, 5e-4*float64(batchSize), true)
optConfig := nn.NewSGDConfig(0.9, 0.0, 5e-4, true)
var opt nn.Optimizer
var err error
switch {