5d2a59fd4cf708d285d0db8ff3522c9156d2c4a9,src/sdk/pynni/nni/_graph_utils.py,TorchModuleGraph,unpack_manually,#TorchModuleGraph#,538

Before Change


                            self.input_to_node[_debug_input].remove(node)
                            // add the following nodes of _output into the input_to_node[_debug_input]
                            self.input_to_node[_debug_input].extend(self.input_to_node[_debug_output])
                        if _debug_input in self.output_to_node and _debug_output in self.output_to_node:
                            // output_to_node[_debug_output] is a NodePyGroup, because one output
                            // tensor only can be generated by one node.
                            self.output_to_node[_debug_output] = self.output_to_node[_debug_input]

        self.unpacked = True

    def _build_graph(self):

After Change


                    errmsg = "%s Input number: %d if inconsistent with the output number %d" % (unpack_cpp, \
                        len(node.inputs), len(list(last_cpp.inputs())))

                    assert len(node.inputs) == len(list(last_cpp.inputs())), errmsg
                    for _debug_input, _debug_output in zip(node.inputs, node.outputs):
                        // _debug_input = _input.debugName()
                        // _debug_output = _output.debugName()
                        if _debug_input in self.input_to_node and _debug_output in self.input_to_node:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: microsoft/nni
Commit Name: 5d2a59fd4cf708d285d0db8ff3522c9156d2c4a9
Time: 2020-08-12
Author: 49771382+zheng-ningxin@users.noreply.github.com
File Name: src/sdk/pynni/nni/_graph_utils.py
Class Name: TorchModuleGraph
Method Name: unpack_manually


Project Name: microsoft/nni
Commit Name: ac6f420f224c331af8bda16edd9700e4cadea7e0
Time: 2019-12-11
Author: lanny@mail.hfut.edu.cn
File Name: src/sdk/pynni/nni/compression/torch/builtin_pruners.py
Class Name: FPGMPruner
Method Name: calc_mask


Project Name: streamlit/streamlit
Commit Name: 047f6bd4873ffcab21c6035c9fffe5e74e914727
Time: 2020-04-01
Author: thiago@streamlit.io
File Name: lib/streamlit/server/Server.py
Class Name: Server
Method Name: _create_report_session