Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'tensorflow.compiler.tf2xla.python.xla' has no attribute 'optimization_barrier' #239

Open
mwitiderrick opened this issue Jul 1, 2022 · 0 comments

Comments

@mwitiderrick
Copy link

import elegy as eg results in the above error on Colab

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-5-cdd8b33baa61>](https://localhost:8080/#) in <module>()
      2 import jax
      3 
----> 4 import elegy as eg
      5 
      6 class MLP(eg.Module):

6 frames
[/usr/local/lib/python3.7/dist-packages/jax/experimental/jax2tf/jax2tf.py](https://localhost:8080/#) in <module>()
   2388                     extra_name_stack="checkpoint")
   2389 
-> 2390 tf_impl[lax_control_flow.optimization_barrier_p] = tfxla.optimization_barrier
   2391 
   2392 def _top_k(operand: TfVal, k: int) -> Tuple[TfVal, TfVal]:

AttributeError: module 'tensorflow.compiler.tf2xla.python.xla' has no attribute 'optimization_barrier'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant