edward2 icon indicating copy to clipboard operation
edward2 copied to clipboard

AttributeError: module 'edward2' has no attribute 'layers'

Open QiyaoWei opened this issue 4 years ago • 1 comments

I am aware of #237, but unfortunately there does not seem to be a well-defined solution in that issue. In my case, I am having this issue when I run the following code (from uncertainty_baselines)

    Conv2DBatchEnsemble = functools.partial(  # pylint: disable=invalid-name
        ed.layers.Conv2DBatchEnsemble,
        kernel_size=3,
        padding='same',
        use_bias=False,
        kernel_initializer='he_normal')

I believe I have downloaded tf2 and tf-probability. I have also tried both "pip install edward2" and installing from source. Could you kindly point out what else I might be missing? Thanks a lot!

QiyaoWei avatar Oct 16 '21 06:10 QiyaoWei

Hello, I have encountered the same problem as you. May I ask how you ultimately resolved it

liuyx599 avatar Jul 22 '23 07:07 liuyx599