I would simply like to understand why a call for keras like from tf import keras will not work in the following code, while I am already importing tensorflow as tf in the first line?
import tensorflow as tf
from tf import keras
Error:
ModuleNotFoundError: No module named 'tf'
However, the following would work -
import tensorflow as tf
from tensorflow import keras
Thanks!