mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
torch backend works for ResNet-18 (#9200)
* torch backend progress, a few more functions * resnet works * pillow * tv
This commit is contained in:
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -153,14 +153,17 @@ jobs:
|
||||
- name: Setup Environment
|
||||
uses: ./.github/actions/setup-tinygrad
|
||||
with:
|
||||
key: torch-backend
|
||||
key: torch-backend-pillow-torchvision
|
||||
deps: testing_minimal
|
||||
pydeps: "pillow torchvision"
|
||||
- name: Install ninja
|
||||
run: |
|
||||
sudo apt update || true
|
||||
sudo apt install -y --no-install-recommends ninja-build
|
||||
- name: Test one op
|
||||
run: PYTHONPATH=. FORWARD_ONLY=1 TINY_BACKEND=1 python3 test/test_ops.py TestOps.test_add
|
||||
- name: Test ResNet-18
|
||||
run: PYTHONPATH=. python3 extra/torch_backend/example.py
|
||||
- name: Test Ops with TINY_BACKEND (expect failure)
|
||||
run: PYTHONPATH=. TINY_BACKEND=1 pytest test/test_ops.py || true
|
||||
- name: Test beautiful_mnist in torch with TINY_BACKEND (expect failure)
|
||||
|
||||
Reference in New Issue
Block a user