ruff torch backend (#9341)

This commit is contained in:
chenyu
2025-03-03 15:15:23 -05:00
committed by GitHub
parent f9e4c638f1
commit 019417743c
2 changed files with 9 additions and 3 deletions

View File

@@ -161,6 +161,10 @@ jobs:
run: |
sudo apt update || true
sudo apt install -y --no-install-recommends ninja-build
- name: Lint with ruff
run: |
pip3 install --upgrade --force-reinstall ruff
python3 -m ruff check extra/torch_backend/backend.py
- name: Test one op
run: PYTHONPATH=. FORWARD_ONLY=1 TINY_BACKEND=1 python3 test/test_ops.py TestOps.test_add
- name: Test ResNet-18