-
Notifications
You must be signed in to change notification settings - Fork 74.8k
Closed
Labels
TF 2.7Issues related to TF 2.7.0Issues related to TF 2.7.0comp:kerasKeras related issuesKeras related issuesstat:awaiting tensorflowerStatus - Awaiting response from tensorflowerStatus - Awaiting response from tensorflowertype:bugBugBug
Description
System information
- OS Platform and Distribution: Windows 10
- TensorFlow installed from: binary
- TensorFlow version: 2.7.0
- Python version: 3.9
- Installed using: Conda
- CUDA/cuDNN version: 11.2/8.1
Describe the problem
I've upgraded tensorflow from 2.5 to 2.7 and now PyCharm doesn't resolve anything under tensorflow.keras.
Other modules of tensorflow work, it's only keras that's problematic. I believe this has something to do with the change in TF 2.6 where keras has been split into a separate PIP package.
People have also been reporting this problem to JetBrains (PyCharm developers): https://youtrack.jetbrains.com/issue/PY-50318
Provide the exact sequence of commands / steps that you executed before running into the problem
- Create the conda environment:
~ conda create --name tensorflow27 - Activate it:
~ conda activate tensorflow27 - Install Python:
~ conda install python=3.9 - Install TensorFlow:
~ pip install tensorflow - Create new project in PyCharm
- Write this code:
import tensorflow as tf
tf.keras.preprocessing.image_dataset_from_directory()
- When you move mouse to image_dataset_from_directory function there will be no autocomplete.
- Writing tf.keras. yields no modules/functions
Any other info / logs
/
trungnt13, forrestrice, mehrtash, Ali-Parandeh, phrasenmaeher and 39 more
Metadata
Metadata
Assignees
Labels
TF 2.7Issues related to TF 2.7.0Issues related to TF 2.7.0comp:kerasKeras related issuesKeras related issuesstat:awaiting tensorflowerStatus - Awaiting response from tensorflowerStatus - Awaiting response from tensorflowertype:bugBugBug