Just block tflite noise, not all stderr

main
Jeff Moe 2023-09-24 10:01:39 -06:00
parent 6b8b0ef060
commit 152f2eeb94
1 changed files with 6 additions and 3 deletions

View File

@ -4,8 +4,11 @@
# https://spacecruft.org/deepcrayon/sndid/issues/12
#
# Temporary workaround to silence Tensorflow
#
# If port in use, wait a few secs for timeout. To see, run:
# echo "netstat -pant | grep 9988"
python3 sndid-server.py "$@" 2>/dev/null || ( echo "Perhaps port in use, wait a few secs for timeout" ; echo "netstat -pant | grep 9988" )
# To get errors, comment out above, and uncomment below
#python3 sndid-server.py "$@"
python3 sndid-server.py "$@" {tmp}>&1 1>&2 2>&$tmp {tmp}>&- | \
grep -v \
-e 'INFO: Created TensorFlow Lite XNNPACK delegate for CPU.'