Skip to content

Implement nanmean function in keras.ops (#22055) #1109

Implement nanmean function in keras.ops (#22055)

Implement nanmean function in keras.ops (#22055) #1109

Workflow file for this run

name: Keras TPU Tests
on:
push:
branches: [master]
pull_request:
types: [unlabeled]
release:
types: [created]
permissions:
contents: read
jobs:
test-in-container:
name: Run tests on TPU
runs-on: linux-x86-ct6e-44-1tpu
# Only run on pushes to master, releases or "kokoro:force-run" unlabel
if: |
github.event_name == 'push' ||
github.event_name == 'release' ||
(github.event_name == 'pull_request' && github.event.action == 'unlabeled' && github.event.label.name == 'kokoro:force-run')
strategy:
fail-fast: false
matrix:
backend: [jax]
container:
image: python:3.11-slim
options: --privileged --network host
steps:
- name: Checkout Repository
uses: actions/checkout@v6.0.1
- name: Install Dependencies
run: pip install --no-cache-dir -r requirements-${{ matrix.backend }}-tpu.txt
- name: Set Keras Backend
run: echo "KERAS_BACKEND=jax" >> $GITHUB_ENV
- name: Verify JAX Installation
run: python3 -c "import jax; print('JAX devices:', jax.devices()); assert jax.default_backend() == 'tpu'"
- name: Run Tests
run: pytest keras --ignore keras/src/applications --cov=keras --cov-config=pyproject.toml