tf.keras.backend.cast_to_floatx

Cast a Numpy array to the default Keras float type.