Add OSX-importer requirements

This commit is contained in:
Anush Elangovan
2022-06-12 07:37:10 +00:00
parent cd8fe34baa
commit 3c26c02a5e
4 changed files with 48 additions and 12 deletions

View File

@@ -0,0 +1,38 @@
-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
--pre
numpy
torch
torchvision
#iree-compiler | iree-runtime should already be installed
#these dont work ok osx
#iree-tools-tflite
#iree-tools-xla
#iree-tools-tf
# TensorFlow and JAX.
gin-config
tensorflow-macos
tensorflow-metal
tf-models-nightly
tensorflow-text-nightly
transformers
jax[cpu]
# tflitehub dependencies.
Pillow
# Testing and support.
lit
pyyaml
#ONNX and ORT for benchmarking
--extra-index-url https://test.pypi.org/simple/
#protobuf
#coloredlogs
#flatbuffers
#sympy
#psutil
#onnx-weekly
#ort-nightly

View File

@@ -1,5 +1,11 @@
#iree-compiler should already be installed
#iree-runtime
-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
--pre
numpy
torch
torchvision
#iree-compiler | iree-runtime should already be installed
iree-tools-tflite
iree-tools-xla
iree-tools-tf

View File

@@ -1,11 +1,3 @@
-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
--pre
numpy
torch
torchvision
# Build requirements.
setuptools
wheel
pytest

View File

@@ -100,8 +100,8 @@ if [[ ! -z "${IMPORTER}" ]]; then
echo "${Yellow}Linux detected.. installing importer tools"
$PYTHON -m pip install --upgrade -r "$TD/requirements-importer.txt" -f https://github.com/${RUNTIME}/releases --extra-index-url https://test.pypi.org/simple/
elif [[ $(uname -s) = 'Darwin' ]]; then
#Conda seems to have some problems install these packages and hope they get resolved upstream.
$PYTHON -m pip install tensorflow-macos tensorflow-metal
#Conda seems to have some problems installing these packages and hope they get resolved upstream.
$PYTHON -m pip install --upgrade -r "$TD/requirements-importer-macos.txt" -f https://github.com/${RUNTIME}/releases
fi
fi