You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reduce the compiled binary size of ONNX Runtime at x86_64 linux with "create_reduced_build_config.py", but got a Failed to find kernel for com.microsoft.nchwc.Conv(1)
#23018
Open
zcb794697510 opened this issue
Dec 5, 2024
· 2 comments
And then, Try to create a reduced build config file from ONNX format model/s: python tools/python/create_reduced_build_config.py -f ONNX ./model/gtcrn.onnx ./model/ , Then, I get config file like this: required_operators.config
I was very curious and opened this config file: vim required_operators.config
#Generated from ONNX model/s:
#- /mnt/workspace1/samba/rambo/07.DeepLearnFramework/onnxruntime-1.20.1/model/gtcrn.onnx
ai.onnx;11;Add,BatchNormalization,Cast,Concat,ConvInteger,ConvTranspose,Div,DynamicQuantizeLinear,GRU,Gather,MatMulInteger,Mul,PRelu,Pad,Pow,ReduceMean,Reshape,ScatterND,Sigmoid,Slice,Sqrt,Squeeze,Sub,Tanh,Transpose,Unsqueeze
I am very happy and then I started Building onnx from souce code, build commnd : ./build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --include_ops_by_config ./model/required_operators.config --skip_tests
No surprise, I succeeded: ll build/Linux/Release/libonnxruntime.so*
Describe the issue
Building onnx from souce code under Ubuntu !
First, I had got a ONNX model/s like this:
gtcrn.onnx
https://github.com/William1617/gtcrn_c/tree/main/modelAnd then, Try to create a reduced build config file from ONNX format model/s:
python tools/python/create_reduced_build_config.py -f ONNX ./model/gtcrn.onnx ./model/
, Then, I get config file like this:required_operators.config
I was very curious and opened this config file:
vim required_operators.config
I am very happy and then I started Building onnx from souce code, build commnd :
./build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --include_ops_by_config ./model/required_operators.config --skip_tests
No surprise, I succeeded:
ll build/Linux/Release/libonnxruntime.so*
I can't wait to try my gains, Run my executable!
However,I have rejoiced too soon!I was happy for only one minute.
My complete dynamic library like this:
I try the complete dynamic library, it is right!
I want to reduce the compiled binary size,what shoud I do?
To reproduce
step1: Get ONNX model/s :
git clone https://github.com/William1617/gtcrn_c.git
step2: Get config file :
python tools/python/create_reduced_build_config.py -f ONNX ./model/gtcrn.onnx ./model/
step3: Build ONNXRUNTIME:
./build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --include_ops_by_config ./model/required_operators.config --skip_tests
step4: Make
libonnxruntime.so
step5: Use
libonnxruntime.so
,run my codestep6: Got Failed
Urgency
No response
Platform
Linux
OS Version
Linux quectel 5.19.0-32-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 30 17:03:34 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.20.1
ONNX Runtime API
C++
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
NULL
The text was updated successfully, but these errors were encountered: