Open josephrocca opened 2 years ago
Hey @fatcat-z, sorry to ping - wondering if you managed to take a look at this? It looks like this might be a problem that's best solved up-stream, since TFLite converter complains that tf.Case
op is missing (minimal notebook example). So maybe I should report this to the jax2tf
team to see if they can convert this sort of thing into a set of more common ops.
Describe the bug The following function can't be converted to ONNX (via TF+
jax2tf
) due to the use ofjax.lax.switch
:Seems like tf2onnx doesn't like arrays of functions?
It throws this error:
Urgency No hard deadlines. This is part of my process of getting Stable Diffusion to run in web browsers.
System information
To Reproduce Here's a minimal reproduction:
https://colab.research.google.com/gist/josephrocca/db146f00593f86e86a0ecc87c49453d3