module ‘keras.engine.base_layer’ has no attribute ‘BaseRandomLayer

We Are Going To Discuss About module ‘keras.engine.base_layer’ has no attribute ‘BaseRandomLayer. So lets Start this Python Article.

module ‘keras.engine.base_layer’ has no attribute ‘BaseRandomLayer

  1. How to solve module 'keras.engine.base_layer' has no attribute 'BaseRandomLayer

    I assume you are using python 3.7. One possible solution would be to use a python=3.8 conda environment.
    Also, you have a mistake in your code above:
    (x_train, y_train), (x, test, y_test) = mnist.load_data()
    Change it to
    (x_train, y_train), (x_test, y_test) = mnist.load_data()
    Then, everything shall work.

  2. module 'keras.engine.base_layer' has no attribute 'BaseRandomLayer

    I assume you are using python 3.7. One possible solution would be to use a python=3.8 conda environment.
    Also, you have a mistake in your code above:
    (x_train, y_train), (x, test, y_test) = mnist.load_data()
    Change it to
    (x_train, y_train), (x_test, y_test) = mnist.load_data()
    Then, everything shall work.

Solution 1

I assume you are using python 3.7. One possible solution would be to use a python=3.8 conda environment.

Also, you have a mistake in your code above:

(x_train, y_train), (x, test, y_test) = mnist.load_data()

Change it to

(x_train, y_train), (x_test, y_test) = mnist.load_data()

Then, everything shall work.

Original Author injo13 Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment