Skip to content

AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'convolution' #2

@beratn

Description

@beratn

Hello everyone.I got this error in my raspberry pi.How to i fix it?

Using TensorFlow backend. Traceback (most recent call last): File "realtime_demo.py", line 143, in <module> main() File "realtime_demo.py", line 138, in main face = FaceCV(depth=depth, width=width) File "realtime_demo.py", line 27, in __init__ self.model = WideResNet(face_size, depth=depth, k=width)() File "/home/pi/Desktop/Keras_age_gender-master/wide_resnet.py", line 122, in __call__ use_bias=self._use_bias)(inputs) # "One conv at the beginning (spatial size: 32x32)" File "/home/pi/.local/lib/python3.5/site-packages/keras/engine/topology.py", line 619, in __call__ output = self.call(inputs, **kwargs) File "/home/pi/.local/lib/python3.5/site-packages/keras/layers/convolutional.py", line 168, in call dilation_rate=self.dilation_rate) File "/home/pi/.local/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 3329, in conv2d x = tf.nn.convolution( AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'convolution'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions