MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / from_ssa

Method from_ssa

detectron2/export/shared.py:816–822  ·  view source on GitHub ↗
(ssa)

Source from the content-addressed store, hash-verified

814
815 @staticmethod
816 def from_ssa(ssa):
817 graph = DiGraph()
818 for op_id in range(len(ssa)):
819 for inp in ssa[op_id][0]:
820 for outp in ssa[op_id][1]:
821 graph.add_edge(inp, outp)
822 return graph
823
824
825def _get_dependency_chain(ssa, versioned_target, versioned_source):

Callers 1

_get_dependency_chainFunction · 0.80

Calls 2

add_edgeMethod · 0.95
DiGraphClass · 0.85

Tested by

no test coverage detected