jax-ml/jax

lax.conv_transpose has different convention than TF, document it and make switching easy?

Open

#14,337 opened on Feb 7, 2023

 (11 comments) (0 reactions) (0 assignees)Python (3,738 forks)github user discovery
documentationenhancementgood first issue

Repository metrics

Stars
 (36,174 stars)
PR merge metrics
 (Avg merge 2d 19h) (439 merged PRs in 30d)

Description

See screenshot:

Though the example uses Haiku, Haiku is just calling through to lax.conv_transpose.

The difference is in reversing the spatial axes of the kernel.

We can do at least two things to make this less surprising and more easily fixable:

  1. document the difference, and
  2. add an argument to lax.conv_transpose to instead use the TF convention.

Contributor guide