Skip to content
Discussion options

You must be logged in to vote

Your x is 2-dimensional and y is one-dimensional. This means that y.size and len(y) are the same, but x.size and len(x) are not. If you switch jnp.sqrt(len(x)) to jnp.sqrt(x.size), your implementation will be correct for these inputs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EngineerKhan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants