es-ude / es-ude/OnDeviceTraining

End-to-end integration tests (PyTorch → ir2c → compile → run)

Open
#64 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
1
Forks
3
Avg merge
1d 1h
Merged PRs (30d)
8

Description

## Context

Sub-issue of #58.

**Blocked by:** #62 (ir2c)

## Goal

Full pipeline integration tests proving the system works end-to-end.

## Test Scenarios

- [ ] **Training E2E**: PyTorch model → `torch2ir` → shape inference → `apply_training_provider` → `ir2c` → compile C code → run on host → verify loss decreases
- [ ] **Inference E2E**: PyTorch model → `torch2ir` → shape inference → `apply_inference_provider` → `ir2c` → compile → run → verify output matches PyTorch reference
- [ ] **All quantization types**: Float32, SymInt32, Asym tested end-to-end
- [ ] **Numerical correctness**: generated code output matches PyTorch reference within tolerance

## Acceptance Criteria

- [ ] At least one model (e.g., Linear → ReLU → Linear → Softmax) tested E2E for training
- [ ] At least one model tested E2E for inference-only
- [ ] All three quantization types pass
- [ ] Tests run in CI

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.