Skip to content

Commit 9abce01

Browse files
committed
modify with tensorflow-metal
1 parent 59a2d63 commit 9abce01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/container/pip-finalize.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ else
5353
# Replace any tensorflow==X with tensorflow-cpu==X in requirements.txt only on amd64
5454
if [[ "$(uname -m)" = "x86_64" ]]; then
5555
sed -i 's/^tensorflow==\([0-9.*]\+\)$/tensorflow-cpu==\1/' requirements.txt
56-
elif [[ "$(uname -m)" = "arm64" ]]; then
57-
sed -i 's/^tensorflow==\([0-9.*]\+\)$/tensorflow-metal==1.1.0/' requirements.txt
56+
elif [[ "$(uname -m)" = "arm64" ]] || [[ "$(uname -m)" = "aarch64" ]]; then
57+
sed -i 's/^tensorflow==.*$/tensorflow-metal==1.1.0/' requirements.txt
5858
else
5959
echo "Skipping TF on $(uname -m)"
6060
fi

0 commit comments

Comments
 (0)