modeltf.save('modeltf.h5') model_load_tf = tf.keras.models.load_model('modeltf.h5') model_load_tf.summary() test_loss, test_acc = model_load_tf.evaluate(test_images_tf, test_labels_tf) print('Test accuracy:', test_acc)