86171ed61ee7bf10537928c10afdbeaadb983e26,elfi/executor.py,Executor,execute,#Any#Any#,15
Before Change
attr = G.node[node]
fn = attr["output"]
logger.debug("Executing {}".format(node))
if callable(fn):
G.node[node] = cls._run(fn, node, G)
result = {k:G.node[k]["output"] for k in G.graph["outputs"]}
return result
@staticmethod
After Change
if "operation" in attr:
op = attr["operation"]
G.node[node] = cls._run(op, node, G)
elif "output" not in attr:
raise ValueError("Generative graph has no op or output present")
// Make a result dict based on the requested outputs
result = {k:G.node[k]["output"] for k in G.graph["outputs"]}
return result
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: elfi-dev/elfi
Commit Name: 86171ed61ee7bf10537928c10afdbeaadb983e26
Time: 2017-04-10
Author: jarno.lintusaari@aalto.fi
File Name: elfi/executor.py
Class Name: Executor
Method Name: execute
Project Name: pavlin-policar/openTSNE
Commit Name: 1e15eeebbe3f9647f4a024ce9d44f5f6bb37b179
Time: 2018-06-22
Author: pavlin.g.p@gmail.com
File Name: tsne/tsne.py
Class Name: TSNE
Method Name: __init__
Project Name: tensorflow/models
Commit Name: 81d031d0c1da3c15cc08f4becebf83b5dfea1887
Time: 2019-11-18
Author: hongkuny@google.com
File Name: official/modeling/model_training_utils.py
Class Name:
Method Name: _get_input_iterator