Samsung / ONE

On-device Neural Engine
Other
438 stars 157 forks source link

[onnx-tools] Don't show BrokenPipeError #14306

Open seanshpark opened 2 weeks ago

seanshpark commented 2 weeks ago

With using pipe like

onnx-dump.py model.onnx | more

and then cancel with q key shows unnecessary pipe error.

BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe

Let's silent this.