PyCharm cannot import tensorflow.keras

You can try using thiese two statements in the exact order:

import tensorflow as tf

tf.compat.v1.disable_eager_execution() # This turns off eager execution in TensorFlow

import keras

from keras import Sequential

from keras import Dense

 

 

0

请先登录再写评论。