Skip to content
Discussion options

You must be logged in to vote

This is a bug that comes from this line: https://github.com/google/jax/blob/9acb7891acda6a8ec12ac0b27d5cf8538eedd958/jax/_src/lax/convolution.py#L322

A set membership check fails if the query is not hashable, and lists are not hashable. We should replace the set {'SAME', 'VALID'} with the list ['SAME', 'VALID'] to address this.

In the meantime, you can work around this by passing your paddings as a tuple rather than a list:

c = lax.conv_general_dilated(a[None, None], b[None, None], (1,1),((0,0),(0,0)),(1,1))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jakevdp
Comment options

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