add dygraph amp support for transformer (#5187)
add dygraph amp support for transformer (#5187)

* add dygraph amp support for transformer

* according params use_amp to decide use dygraph amp
PaddlePaddle/models,PaddlePaddle/models,PaddlePaddle/models