Home > other >  How to better adapt to handle tensorflow version
How to better adapt to handle tensorflow version

Time:10-31

In building a neural network instance

# import keras Conv2D module
The from keras. The layers. Convolutional import Conv2D

Error:
ModuleNotFoundError: No module named 'keras. The layers. Convolutional'

The problem how to solve? And the great god do you have any experience in this kind of similar problems?

If you can share, thank you so much.

CodePudding user response:

Now know about is: should be tensorflow version problem
For tensorflow - 2.0 and above, using the from keras. The layers. The convolutional import Conv2D is can
For other versions, may refer to tf. Nn. Conv2d ()
  • Related