title: how to get data type of a tensor in tensorflow?
body: <p>Which function is used to get the data type of tensors in tensorflow in python? I need to define dynamic data types according to different tensors.</p>