No module named 'tensorflow.keras.layers.experimental.preprocessing'

后端 未结 2 1629
情深已故
情深已故 2021-01-22 04:22

Below the code

import numpy as np
np.random.seed(0)
from sklearn import datasets
import matplotlib.pyplot as plt
%matplotlib inline
%config Inlin         


        
相关标签:
2条回答
  • 2021-01-22 05:10

    you need to update the version of your TensorFlow. For me, 2.2.0 solved the problem. I also checked with the higher versions and worked ok.

    pip install tensorflow==2.2.0
    

    or

    pip install tensorflow-gpu==2.2.0 
    
    0 讨论(0)
  • 2021-01-22 05:20

    You need update TensorFlow. You can try with

    pip install tensorflow==2.0.0
    

    or, if you use gpu version

    pip install tensorflow-gpu==2.0.0 
    

    For more details, in this issue follow this answer

    0 讨论(0)
提交回复
热议问题