Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update release version and comment orbax checkpoint#613

Update release version and comment orbax checkpoint

Update release version and comment orbax checkpoint #613

Workflow file for this run

name:Keras Tests
# TODO: Consider enabling all tests (pytest, applications, etc.) with NNX in the future
# Currently only basic flow tests run with NNX enabled
on:
push:
branches:[ master ]
pull_request:
types:[labeled]
pull_request_review:
types:[submitted]
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 approved PRs, pushes to master, releases or "run_tpu_tests" labels
if:|
github.event_name == 'push' ||
github.event_name == 'release' ||
(github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'run_tpu_tests') ||
(github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
strategy:
fail-fast:false
matrix:
backend:[jax]
container:
image:python:3.11-slim
options:--privileged --network host
steps:
-name:Checkout Repository
uses:actions/checkout@v4
-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:Run Verification and Tests
run:|
echo "Successfully running inside the public python container!"
echo "Verifying JAX installation..."
python3 -c "import jax; print(f'JAX backend: {jax.default_backend()}'); print(f'JAX devices : {jax.devices()}')"
pytest keras --ignore keras/src/applications \
--cov=keras \
--cov-config=pyproject.toml

[8]ページ先頭

©2009-2025 Movatter.jp