我在用slim剪枝时优化器报错怎么解决
Created by: JLei67
pruned_program, _, _ = pruner.prune(train_program, fluid.global_scope(), params=ratios.keys(),ratios=ratios.values(), place=place)
报错为:Error: Param and Velocity of MomentumOp should have the same dimension. [Hint: Expected param_dim == ctx->GetInputDim("Velocity"), but received param_dim:12544, 4096 != ctx->GetInputDim("Velocity"):24832, 4096.] at (/paddle/paddle/fluid/operators/optimizers/momentum_op.h:79) [operator < momentum > error] 应该是说参数数量不匹?但我剪枝的话参数数量肯定会减少吧