Add dimension check for inverse to avoid dividing by 0 error when input's shape is [0, 0, 0]. (#34996)
Add dimension check for inverse to avoid dividing by 0 error when input's shape is [0, 0, 0]. (#34996)


PaddlePaddle/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle