f76df8cf2caae4b40f2cb2a29554329bb564f123,pymc3/model_graph.py,ModelGraph,_get_ancestors,#ModelGraph#Any#Any#,42
Before Change
else: // deterministic accounting
for d in powerset(upstream):
blocked = self._ancestors(var, func, blockers=d)
if set(d) == blocked:
return d
raise RuntimeError("Could not traverse graph. Consider raising an issue with developers.")
def _filter_parents(self, var, parents):
Get direct parents of a var, as strings
keep = set()
After Change
return upstream
else: // deterministic accounting
blockers = set()
retval = set()
def _expand(node) -> Optional[Iterator[Tensor]]:
if node in blockers:
return None
elif node in vars:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pymc-devs/pymc3
Commit Name: f76df8cf2caae4b40f2cb2a29554329bb564f123
Time: 2019-05-05
Author: rpgoldman@goldman-tribe.org
File Name: pymc3/model_graph.py
Class Name: ModelGraph
Method Name: _get_ancestors
Project Name: pytorch/pytorch
Commit Name: d6452a1a0cbc308939f8c597c68a1f5f212dc8b8
Time: 2021-02-04
Author: iliacher@fb.com
File Name: torch/profiler/profiler.py
Class Name: profile
Method Name: __init__
Project Name: bokeh/bokeh
Commit Name: d9353e24bbe67e6c090cc0fd47ffb41b277b325d
Time: 2020-02-16
Author: mattpap@gmail.com
File Name: bokeh/io/webdriver.py
Class Name: _WebdriverState
Method Name: __init__