Closed rgap closed 3 years ago
Thanks for reporting this issue! Could you please report what the shape of X
and y
are? I suspect you might be applying np.vstack
to a 1D array.
The shapes
type(X) = <class 'numpy.ndarray'> X.shape = (4, 1)
type(y) = <class 'numpy.ndarray'> y.shape = (4,)
z.shape = (4,)
And which line is raising the ValueError
exception?
Never mind, I can see it in the trace you posted above. Let me look into it and get back to you soon
Thanks, and it is in your code when converting to a tensor I think
new_args = map(tf.convert_to_tensor, args) outputs = fn(*new_args)
This seems to only be a problem with 1D functions. I will issue a patch soon. Feel free to try it out with functions of several variables in the meantime :)
Fixed in #8
Description
Hi @ltiao,
I'm trying to run the example (master branch). Please, could you let me know what I'm doing wrong here. I'm getting the error:
Code