module 'tensorflow' has no attribute 'to_int32' code example Example: AttributeError: module 'tensorflow' has no attribute 'to_int32' site:stackoverflow.com tf.cast(my_tensor, tf.int32)