Developer Manual
- Introduction
- Build and setup
- Compile and run a model
- Design
- TOSA to Torq Conversion
- Kernel Development
- Adding a New Pass
- Tile and fuse, and reduction tiling
- The prefetch list scheduler
- 1. The problem
- 2. The hardware model
- 3. Where the pass runs and what it sees
- 4. Step 1: the dependency graph (
StreamGraph) - 5. Step 2: the scheduling loop (
listSchedule) - 6. Worked example 1: overlap and both slices
- 7. Worked example 2: the LRAM limits
- 8. Step 3: choosing a schedule (
runOnOperation) - 9. The tile budgets
- 10. Limits and known gaps
- 11. Flags
- Adding a new compute optimization
- Recommended submission process
- Debug tips and tricks
- Troubleshooting
- References
- Testing
- More testing
- Tools
- Template Profiling Tool
- torq-mlir-query
- torq.lab developer guide
- Gen-Config Architecture
- TORQ ONNX Quantization
- Table of Contents
- 1. Overview
- 2. ONNX Quantization Formats
- 3. torq-gen-config Quantization Workflow
- 4. Quantized Convolution Zero-Point Correction
- 5. References
- Model testing and debugging workflow
- Running test suite for a model
- Collect all the tests for a model
- What the tests do
- Executing the tests
- Investigating ERRORs
- Investigating FAILUREs
- Debugging a test
- Performance debugging
- Executing tests using real hardware
- Using the results dashboard
- Advanced: Test framework internals and PyTest fixtures
- TFLite model testing
- CI/CD pipelines
- Development process
- Release process
This manual is structured step-by-step, starting from introduction and setup, through model conversion, compiling & running, supported operators, testing, and advanced topics.