Skip to content

Import torch only when the Python runtime needs it, warn before outputs follow inputs, and upload bfloat16 without torch #23160

Import torch only when the Python runtime needs it, warn before outputs follow inputs, and upload bfloat16 without torch

Import torch only when the Python runtime needs it, warn before outputs follow inputs, and upload bfloat16 without torch #23160

name: Test WebGPU Backend
on:
schedule:
- cron: 0 2 * * *
push:
branches:
- main
- release/*
tags:
- ciflow/nightly/*
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
cancel-in-progress: true
jobs:
test-webgpu:
uses: ./.github/workflows/_test_backend.yml
permissions:
id-token: write
contents: read
with:
backend: webgpu
flows: '["webgpu"]'
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
timeout: 120
run-linux: true