From 33d3dfdaea832e0444006aae67e811ea22fa2fda Mon Sep 17 00:00:00 2001 From: Giovanni Fregonese Date: Wed, 20 Mar 2024 15:41:42 +0100 Subject: [PATCH 1/5] Update meta.yaml --- recipe/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 56a9990..f13a47d 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -15,7 +15,7 @@ source: build: script: {{ PYTHON }} -m pip install . -vv noarch: python - number: 0 + number: 1 requirements: host: @@ -33,8 +33,8 @@ requirements: - ml_dtypes run_constrained: - tensorflow >=2.15.0,<2.17.0a - - jax 0.4 - - torch 2.1 + - jax 0.4.* + - torch 2.1.* test: requires: From f32582aabce28a614cc2c791a8d5c6917cfa1f57 Mon Sep 17 00:00:00 2001 From: "conda-forge-webservices[bot]" <91080706+conda-forge-webservices[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 14:45:24 +0000 Subject: [PATCH 2/5] MNT: Re-rendered with conda-build 24.1.2, conda-smithy 3.32.0, and conda-forge-pinning 2024.03.19.15.37.47 --- .azure-pipelines/azure-pipelines-linux.yml | 1 + .scripts/build_steps.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-linux.yml b/.azure-pipelines/azure-pipelines-linux.yml index abcbeb9..875d996 100755 --- a/.azure-pipelines/azure-pipelines-linux.yml +++ b/.azure-pipelines/azure-pipelines-linux.yml @@ -13,6 +13,7 @@ jobs: UPLOAD_PACKAGES: 'True' DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64 timeoutInMinutes: 360 + variables: {} steps: # configure qemu binfmt-misc running. This allows us to run docker containers diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index a4d638b..2f3df6c 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -65,7 +65,7 @@ if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then # Drop into an interactive shell /bin/bash else - conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \ + conda-build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \ --suppress-variables ${EXTRA_CB_OPTIONS:-} \ --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" \ --extra-meta flow_run_id="${flow_run_id:-}" remote_url="${remote_url:-}" sha="${sha:-}" From 95aee439ef86fdb184d1c381bdf22625d1093c28 Mon Sep 17 00:00:00 2001 From: ngam <67342040+ngam@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:06:49 -0400 Subject: [PATCH 3/5] use pytorch, not torch Co-authored-by: Silvio Traversaro --- recipe/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index f13a47d..af408ef 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -34,7 +34,7 @@ requirements: run_constrained: - tensorflow >=2.15.0,<2.17.0a - jax 0.4.* - - torch 2.1.* + - pytorch 2.1.* test: requires: From fbde16999925eee9189407e44b9757cdc14c9724 Mon Sep 17 00:00:00 2001 From: ngam <67342040+ngam@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:37:28 -0400 Subject: [PATCH 4/5] add a test for jax and numpy backends --- recipe/meta.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index af408ef..6f2c307 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -39,11 +39,10 @@ requirements: test: requires: - pip + - jax commands: - pip check - # even the numpy backend requires jax.... - # https://github.com/keras-team/keras/issues/18840 - # - KERAS_BACKEND=numpy python -c "import keras" + - KERAS_BACKEND=numpy python -c "import keras" about: home: https://github.com/keras-team/keras From b88e5e63decd6c1341ab0355b318bceb78f76792 Mon Sep 17 00:00:00 2001 From: ngam <67342040+ngam@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:38:44 -0400 Subject: [PATCH 5/5] actually test the jax backend --- recipe/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 6f2c307..d1c6d84 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -43,6 +43,7 @@ test: commands: - pip check - KERAS_BACKEND=numpy python -c "import keras" + - KERAS_BACKEND=jax python -c "import keras" about: home: https://github.com/keras-team/keras