In Keras,
I\'m trying to import _obtain_input_shape as follows:
_obtain_input_shape
from keras.applications.imagenet_utils import _obtain_input_shape
I have found a method that works well. You just use
from keras_applications.imagenet_utils import _obtain_input_shape
Notice: It is keras_applications instead of keras.application.
keras_applications
keras.application