06e438b7eff63e757f3a58d60b7ca7923d2bd5ae,nni/common/graph_utils.py,TorchModuleGraph,unpack_manually,#TorchModuleGraph#,596
Before Change
// will be merged into the same NodePyGroup, so we remove the `node` from
// input_to_node[_debug_input] and directly connect this tensor to the
// input_to_node[_debug_output]
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])
// just remove the _debug_output from the grapgh index. So that we can also skip
// the construct and tuple
After Change
// will be merged into the same NodePyGroup, so we remove the `node` from
// input_to_node[_debug_input] and directly connect this tensor to the
// input_to_node[_debug_output]
if node in self.input_to_node[_debug_input]:
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])
// just remove the _debug_output from the grapgh index. So that we can also skip
// the construct and tuple
if _debug_output in self.input_to_node:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: microsoft/nni
Commit Name: 06e438b7eff63e757f3a58d60b7ca7923d2bd5ae
Time: 2021-02-03
Author: 49771382+zheng-ningxin@users.noreply.github.com
File Name: nni/common/graph_utils.py
Class Name: TorchModuleGraph
Method Name: unpack_manually
Project Name: hanxiao/bert-as-service
Commit Name: b81c3bf143c79c3e3f4e4511990eb587a528f5d1
Time: 2019-01-30
Author: hanhxiao@tencent.com
File Name: client/bert_serving/client/__init__.py
Class Name: BertClient
Method Name: _recv
Project Name: hanxiao/bert-as-service
Commit Name: 54df9f42cac27e4abd11f8faa2f1c93302318bc4
Time: 2019-01-30
Author: hanhxiao@tencent.com
File Name: client/bert_serving/client/__init__.py
Class Name: BertClient
Method Name: _recv