 Refine Infershape in activation_op for double_grad. (#18485)
 Refine Infershape in activation_op for double_grad. (#18485)

* Refine Infershape in activation_op for double_grad.
tensor-tang/Paddle,luotao1/Paddle,luotao1/Paddle,tensor-tang/Paddle,tensor-tang/Paddle,chengduoZH/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,tensor-tang/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,chengduoZH/Paddle,chengduoZH/Paddle,tensor-tang/Paddle,chengduoZH/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,chengduoZH/Paddle