fix resnet model for dygraph incompatible upgrade, test=develop (#4114)
fix resnet model for dygraph incompatible upgrade, test=develop (#4114)


PaddlePaddle/models,PaddlePaddle/models,PaddlePaddle/models