Padding in conv_transpose() #8695
-
I have made a simple example:
But when I try to switch
While comparing the arguments of both functions (and implementation details as well) respectively, I don't find any difference between the padding handling of the two. How can I fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 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)) |
Beta Was this translation helpful? Give feedback.
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: