python lasagne ImportError cannot import BatchNormLayer

Viewed 6805

When I try to play with the code here, I met a very strange error. Every other modules can be imported properly, except for one.

Specifically, the error is:

ImportError: cannot import name BatchNormLayer

from the file here. And the lasagne_extensions.layers is as following:

from .density_layers import *
from lasagne.layers import *
from parmesan.layers import *

So, I believe the problem should be that I didn't install lasagne or parmesan properly.

I have tried to upgrade the relevant modules including numpy, scipy, theano and lasagne to newest version with pip install --upgrade respectively. There is no pip install support for parmesan, so I downloaded it and installed it again. However, the error remains.

Can anyone give me some advice about what I should look into?

1 Answers
Related