bcf38b02cc7209d1baccd1302b5224f5faf2f00a,plugins/train/model/_base.py,_Inference,_make_inference_model,#_Inference#Any#,1454
Before Change
logger.debug("Adding model inputs %s: %s", self._input_names, self._inputs)
model = layer(self._inputs)
else:
layer_inputs = [compiled_layers[inp] for inp in inbound]
logger.debug("Compiling layer "%s": layer inputs: %s", name, layer_inputs)
model = layer(layer_inputs)
compiled_layers[name] = model
retval = KerasModel(self._inputs, model, name="{}_inference".format(saved_model.name))
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: deepfakes/faceswap
Commit Name: bcf38b02cc7209d1baccd1302b5224f5faf2f00a
Time: 2021-01-31
Author: 36920800+torzdf@users.noreply.github.com
File Name: plugins/train/model/_base.py
Class Name: _Inference
Method Name: _make_inference_model
Project Name: NTMC-Community/MatchZoo
Commit Name: 80c47cb00363fd8bef153eb55436b3b0e4294ba9
Time: 2018-12-01
Author: i@uduse.com
File Name: matchzoo/models/naive_model.py
Class Name: NaiveModel
Method Name: build
Project Name: NTMC-Community/MatchZoo
Commit Name: 80c47cb00363fd8bef153eb55436b3b0e4294ba9
Time: 2018-12-01
Author: i@uduse.com
File Name: matchzoo/models/dense_baseline_model.py
Class Name: DenseBaselineModel
Method Name: build