application_vnd.jupyter.stderr_output_1.png
from tensorflow.keras.applications.inception_v3 import InceptionV3

from tensorflow.keras.applications.inception_v3 import InceptionV3
from tensorflow.keras import layers
pre_trained_model = InceptionV3(input_shape=(256, 256, 3), include_top=False, weights=None)
for layer in pre_trained_model.layers:
    layer.trainable = False

pre_trained_model.summary()

last_layer = pre_trained_model.get_layer('mixed7')
print('last layer output shape: ', last_layer.output_shape)
last_output = last_layer.output