Skip to content

Commit

Permalink
apply code-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored and github-actions[bot] committed Feb 8, 2025
1 parent 825a8aa commit 516ac7e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tools/pnnx/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,21 +325,21 @@ int main(int argc, char** argv)
else
#endif
#if BUILD_ONNX2PNNX
if (!model_file_maybe_torchscript(ptpath))
{
load_onnx(ptpath.c_str(), pnnx_graph,
input_shapes, input_types,
input_shapes2, input_types2);
}
else
if (!model_file_maybe_torchscript(ptpath))
{
load_onnx(ptpath.c_str(), pnnx_graph,
input_shapes, input_types,
input_shapes2, input_types2);
}
else
#endif
{
load_torchscript(ptpath, pnnx_graph,
device, input_shapes, input_types,
input_shapes2, input_types2,
customop_modules, module_operators,
foldable_constants_zippath, foldable_constants);
}
{
load_torchscript(ptpath, pnnx_graph,
device, input_shapes, input_types,
input_shapes2, input_types2,
customop_modules, module_operators,
foldable_constants_zippath, foldable_constants);
}

fprintf(stderr, "############# pass_level2\n");

Expand Down

0 comments on commit 516ac7e

Please sign in to comment.