AttributeError: module 'flax' has no attribute 'nn'

Nagabhushan S N

I'm trying to run RegNeRF, which requires flax. On installing the latest version of flax==0.6.0, I got an error stating flax has no attribute optim. This answer suggested to downgrade flax to 0.5.1. On doing that, now I'm getting the error AttributeError: module 'flax' has no attribute 'nn'

I could not find any solutions on the web for this error. Any help is appreciated.

I'm using ubuntu 20.04

jakevdp

The flax.optim module has been moved to optax as of flax version 0.6.0; see Upgrading my Codebase to Optax for information on how to migrate your code. If you're using external code that imports flax.optim and can't update these references, you'll have to install flax version 0.5.3 or older.

Regarding flax.nn: this module was replaced by flax.linen in flax version 0.4.0. See Upgrading my Codebase to Linen for information on this migration. If you're using external code that imports flax.nn and can't update these references, you'll have to install flax version 0.3.6 or older.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

AttributeError: module 'attr' has no attribute 's'

AttributeError: 'module' object has no attribute 'computation'

AttributeError: 'module' object has no attribute 'tests'

AttributeError: 'module' object has no attribute 'TestCase'

AttributeError: 'datetime' module has no attribute 'strptime'

AttributeError: 'module' object has no attribute

AttributeError:'module' object has no attribute 'call' :Python

AttributeError: 'module' object has no attribute 'version'

AttributeError: 'module' object has no attribute 'authorize'

Tensorflow Module Import error: AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'rnn_cell'

AttributeError: 'module' object has no attribute 'mkdirs'

AttributeError: 'module' object has no attribute 'open'

Credstash: 'module' object has no attribute 'get': AttributeError

AttributeError: module 'zbar' has no attribute 'ImageScanner'

AttributeError: module 'boto' has no attribute 'plugin'

AttributeError: module 'matplotlib' has no attribute 'scatter'

AttributeError: module 'pandora' has no attribute 'util'

AttributeError: 'module' object has no attribute 'grd'

Django - AttributeError: 'module' object has no attribute 'admin'

Python AttributeError: 'module' object has no attribute 'get'

AttributeError: 'module' object has no attribute 'Bussiness'

AttributeError: 'module' object has no attribute 'home'

AttributeError 'module' object has no attribute 'decodebytes'

AttributeError: module 'scrapy' has no attribute 'field'

with AttributeError: module 'tensorflow' has no attribute 'gfile'

AttributeError: module 'torch.nn' has no attribute 'ReflectionPad3d'

AttributeError: module 'tk' has no attribute 'Tk'

AttributeError: module ' ' has no attribute 'Command'

AttributeError: module A has no attribute B