From eaecedf4bb9093ef0be81c33939cb16ac6cd0300 Mon Sep 17 00:00:00 2001 From: Michael Mayer <michael@photoprism.app> Date: Fri, 25 Mar 2022 10:14:48 +0100 Subject: [PATCH] Docker: Update scripts/dist/tensorflow-driver.sh --- scripts/dist/tensorflow-driver.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/dist/tensorflow-driver.sh b/scripts/dist/tensorflow-driver.sh index 324d7acff..5d75143b9 100755 --- a/scripts/dist/tensorflow-driver.sh +++ b/scripts/dist/tensorflow-driver.sh @@ -1,7 +1,8 @@ #!/bin/bash PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts" -CPU_DETECTED=$(/usr/bin/lshw -c processor -json 2>/dev/null) + +CPU_DETECTED=$(lshw -c processor -json 2>/dev/null) if [[ $(echo "${CPU_DETECTED}" | jq -r '.[].capabilities.avx2') == "true" ]]; then echo "avx2"