Created by: abhinavarora
Fix https://github.com/PaddlePaddle/Paddle/issues/8445 Fix https://github.com/PaddlePaddle/Paddle/issues/8446
@kavyasrinet and I have been pair programming to move DataType
enum inside VarType
as proposed @wangkuiyi in https://github.com/PaddlePaddle/Paddle/pull/8352