7f7a30cae66e7d65917ceea966225292f582d809,onnx_coreml/_transformers.py,DeadCodeElimination,__call__,#DeadCodeElimination#,795
Before Change
for node in graph.nodes:
output_used = False
for _output in node.outputs:
if _output in output_names or _output in use_set:
output_used = True
break
if not output_used:
After Change
if not output_used:
// Remove current node
for _input in node.inputs:
uses[_input] -= 1
if uses[_input] == 0:
del uses[_input]
nodes_to_be_removed.append(node.name)
for parent in node.parents:
parent.children.remove(node)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: onnx/onnx-coreml
Commit Name: 7f7a30cae66e7d65917ceea966225292f582d809
Time: 2019-10-04
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: DeadCodeElimination
Method Name: __call__
Project Name: huggingface/neuralcoref
Commit Name: 204878825342bfdcc3b2e446b7825f8cbf6d54f5
Time: 2017-07-12
Author: thomwolf@gmail.com
File Name: neuralcoref/algorithm.py
Class Name: Coref
Method Name: get_clusters
Project Name: lingpy/lingpy
Commit Name: 4560e7769fc21e04c5f673f0549de6601d43de45
Time: 2013-09-09
Author: mattis.list@posteo.de
File Name: setup.py
Class Name:
Method Name: