Tensorflow autocomplete in pycharm

Question:

I started to user tensorflow on pycharm and i discovered that there is not auto completion
is it possible to add it

Asked By: yardenK

||

Answers:

i think you might want to use this format to import it:

import tensorflow as tf
....
#usage
tf.keras.callbacks.—
tf.keras.optimizers.—

The above should fix it for you.

Answered By: Raj Verma

This issue is solved in PyCharm 2021.2.4

Answered By: Hamidreza Moeini

You can fix it by replacing:

import tensorflow.keras

with:

import tensorflow.python.keras
Answered By: Hamidreza Moeini
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.