convert a NumPy array to a Tensor as a layer code example Example: tf tensor from numpy tf.convert_to_tensor(my_np_array, dtype=tf.float32)