struct = self._get_filtered_structure()
required_layers = self._get_required_layers(struct)
logger.debug("Compiling model")
layer_dict = {layer.name: layer for layer in saved_model.layers}
compiled_layers = dict()
for name, inbound in struct.items():
if name not in required_layers:
After Change
logger.debug("Compiling inference model. saved_model: %s", saved_model)
struct = self._get_filtered_structure()
model_inputs = self._get_inputs(saved_model.inputs)
compiled_layers = dict()
for layer in saved_model.layers:
if layer.name not in struct:
logger.debug("Skipping unused layer: "%s"", layer.name)