Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jaxonnxrutnime backend with the correct config for op testing. #60

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions runtimes/jaxonnxruntime/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@ RUN pip3 install git+https://github.com/google/jaxonnxruntime.git@main

RUN pip3 install --upgrade pip setuptools wheel pytest

############## JAX and JAXONNXRuntime configs ###########
# ref to https://github.com/google/jaxonnxruntime/blob/main/tests/onnx_ops_test.py
ENV JAX_DEFAULT_DTYPE_BITS=64
maxwillzq marked this conversation as resolved.
Show resolved Hide resolved
ENV JAX_ENABLE_X64=True
ENV JAX_NUMPY_RANK_PROMOTION=warn
ENV JAXORT_ONLY_ALLOW_INITIALIZERS_AS_STATIC_ARGS=0
ENV JAXORT_NONZERO_USE_FULLY_PADDING=1

CMD . /root/setup/docker-setup.sh && \
pytest /root/test/test_backend.py --onnx_backend=${ONNX_BACKEND} -k 'not _cuda' -v
8 changes: 8 additions & 0 deletions runtimes/jaxonnxruntime/stable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@ RUN pip3 install --no-cache-dir \
####################################################
RUN pip3 install --upgrade pip setuptools wheel pytest

############## JAX and JAXONNXRuntime configs ###########
# ref to https://github.com/google/jaxonnxruntime/blob/main/tests/onnx_ops_test.py
ENV JAX_DEFAULT_DTYPE_BITS=64
maxwillzq marked this conversation as resolved.
Show resolved Hide resolved
ENV JAX_ENABLE_X64=True
ENV JAX_NUMPY_RANK_PROMOTION=warn
ENV JAXORT_ONLY_ALLOW_INITIALIZERS_AS_STATIC_ARGS=0
ENV JAXORT_NONZERO_USE_FULLY_PADDING=1

CMD . /root/setup/docker-setup.sh && \
pytest /root/test/test_backend.py --onnx_backend=${ONNX_BACKEND} -k 'not _cuda' -v