I just installed tensorflow, and am trying to get the basics to work. However, the import statement is underlined in red, with message "unresolved reference 'layers' ". The code does run correctly though.
I've tried some of the suggestions in this question: PyCharm shows unresolved references error for valid code.
However, that question is not about my specific error, and I'm wondering what the cause of my error is, and whether it is just part of a pycharm-level bug, or something related to tensorflow.
My code is:
import tensorflow as tf;
from tensorflow.keras import layers;
It gives the error "unresolved reference 'layers' " on a red jagged underline beneath "layers", with no indication of how to solve it.