Skip to content

Commit 27fb4b0

Browse files
committed
Fix return in parseFromFile (#605)
Signed-off-by: Kevin Chen <kevinch@nvidia.com>
1 parent bcc77b9 commit 27fb4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ModelImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ bool ModelImporter::parseFromFile(const char* onnxModelFile, int32_t verbosity)
654654
if (!is_binary && !ParseFromTextFile(&onnx_model, onnxModelFile))
655655
{
656656
cerr << "Failed to parse ONNX model from file: " << onnxModelFile << endl;
657-
return EXIT_FAILURE;
657+
return false;
658658
}
659659

660660
// Keep track of the absolute path to the ONNX file.

0 commit comments

Comments
 (0)