0f1b9f861ebec4cd6811f1e7fa13e63854f429ca,python/src/nnabla/utils/converter/commands.py,,_import_file,#Any#Any#,28
Before Change
def _import_file(args, ifiles):
if len(ifiles) == 1 and os.path.splitext(ifiles[0])[1] == ".nnp":
args.import_format = "NNP"
if len(ifiles) == 1 and os.path.splitext(ifiles[0])[1] == ".onnx":
args.import_format = "ONNX"
if args.import_format == "NNP":
// Input file that has unsupported extension store into output nnp
After Change
def _import_file(args, ifiles):
if len(ifiles) == 1:
ext = os.path.splitext(ifiles[0])[1]
if ext == ".nnp":
args.import_format = "NNP"
elif ext == ".onnx":
args.import_format = "ONNX"
elif ext == ".pb":
args.import_format = "TF_PB"
elif ext == ".ckpt":
args.import_format = "TF_CKPT"
if args.import_format == "NNP":
// Input file that has unsupported extension store into output nnp
// archive or directory.
return NnpImporter(*ifiles,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: sony/nnabla
Commit Name: 0f1b9f861ebec4cd6811f1e7fa13e63854f429ca
Time: 2019-04-11
Author: Woody.Li@sony.com
File Name: python/src/nnabla/utils/converter/commands.py
Class Name:
Method Name: _import_file
Project Name: pyinstaller/pyinstaller
Commit Name: deb64d5510f1e10fbe21edb511eb3ec698d95bf0
Time: 2015-07-30
Author: h.goebel@crazy-compilers.com
File Name: tests/old_suite/import/test_c_extension.py
Class Name:
Method Name:
Project Name: pyinstaller/pyinstaller
Commit Name: 4952a9ebd45cde469e15dfe8e896c737a63adebe
Time: 2013-07-12
Author: mzibr.public@gmail.com
File Name: PyInstaller/lib/modulegraph/find_modules.py
Class Name:
Method Name: parse_mf_results
Project Name: pyinstaller/pyinstaller
Commit Name: deb64d5510f1e10fbe21edb511eb3ec698d95bf0
Time: 2015-07-30
Author: h.goebel@crazy-compilers.com
File Name: tests/old_suite/import/test_onefile_c_extension.py
Class Name:
Method Name: