Passed in object of type <class 'numpy.ndarray'>, not tf.Tensor code example Example: tf tensor from numpy tf.convert_to_tensor(my_np_array, dtype=tf.float32)