699ce9a0d6e19852f5d6171f86265b718bc860f8,python/src/nnabla/utils/nnp_graph.py,NnpLoader,__init__,#NnpLoader#Any#Any#Any#,458
Before Change
self._params = scope
if isinstance(filepath, str):
_, ext = os.path.splitext(filepath)
else:
ext = extension
if ext == ".nnp":
After Change
// The loaded parameters will be copied to the current
// scope when get_network is called.
self._params = scope if scope else OrderedDict()
self.g = nn.graph_def.load(
filepath, parameter_scope=self._params, rng=np.random.RandomState(1223), extension=extension)
self.network_dict = {
name: pn for name, pn in self.g.networks.items()
}
def get_network_names(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: sony/nnabla
Commit Name: 699ce9a0d6e19852f5d6171f86265b718bc860f8
Time: 2021-03-01
Author: woody.li@sony.com
File Name: python/src/nnabla/utils/nnp_graph.py
Class Name: NnpLoader
Method Name: __init__
Project Name: matplotlib/matplotlib
Commit Name: 66348a9259bc034d0f6b21cfb554f8b2f0af94b0
Time: 2018-03-23
Author: anntzer.lee@gmail.com
File Name: tools/triage_tests.py
Class Name:
Method Name: find_failing_tests
Project Name: pyinstaller/pyinstaller
Commit Name: 7e71cfc468aa49d9dc59d703a61e4f1a28ac380d
Time: 2019-11-08
Author: springermac@gmail.com
File Name: PyInstaller/lib/modulegraph/modulegraph.py
Class Name: ModuleGraph
Method Name: _find_module_path