Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dimension dismatch #2013

Open
wangchunlin opened this issue Nov 6, 2022 · 1 comment
Open

Dimension dismatch #2013

wangchunlin opened this issue Nov 6, 2022 · 1 comment
Labels

Comments

@wangchunlin
Copy link

#when input dimension is 2 or larger, the following error comes up. why the input dimension can not be larger than 1?

return func(*args, **kwargs)
File "D:\Anaconda111\lib\site-packages\gpflow\utilities\ops.py", line 122, in square_distance *
dist = -2 * tf.tensordot(X, X2, [[-1], [-1]])

ValueError: Dimensions must be equal, but are 1 and 2 for '{{node Tensordot/MatMul}} = MatMul[T=DT_DOUBLE, transpose_a=false, transpose_b=false](truediv_1, Tensordot/transpose)' with input shapes: [15,1], [2,100].
@wangchunlin wangchunlin added the bug label Nov 6, 2022
@wangchunlin
Copy link
Author

Tensor shape mismatch.
Function: GPR_deprecated.init
Declared: D:\Anaconda111\lib\site-packages\gpflow\models\gpr.py:57
Argument: data
Index: [0]
Expected: [N, D]
Actual: [15, 2]
Index: [1]
Expected: [N, P]
Actual: [15]
Argument: noise_variance
Expected: []
Actual:
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant