globally set parameters cannot work in V2 API
Created by: NHZlX
the optimizer config in train.py still not be sended to c++ code!
momentum_optimizer = paddle.optimizer.Momentum(
momentum=0.9,
regularization=paddle.optimizer.L2Regularization(rate=0.0005 * 50),
learning_rate=0.1 / 50.0,
learning_rate_decay_a=0.1,
learning_rate_decay_b=50000 * 50,
learning_rate_schedule='discexp')
part of the paramter proto
parameters {
name: "_module13_1x1_bn.wbias"
size: 1024
initial_mean: 0.0
initial_std: 0.0
dims: 1
dims: 1024
initial_strategy: 0
initial_smart: false
}
parameters {
name: "___fc_layer_0__.w0"
size: 104448
initial_mean: 0.0
initial_std: 0.03125
dims: 1024
dims: 102
initial_strategy: 0
initial_smart: true
}
parameters {
name: "___fc_layer_0__.wbias"
size: 102
initial_mean: 0.0
initial_std: 0.0
dims: 1
dims: 102
initial_strategy: 0
initial_smart: false
}