in dict_minimize/tensorflow_api.py [0:0]
def _from_np(X, dtype): assert X.dtype.kind == "f" Xt = tf.constant(X, dtype=dtype) return Xt