Repository navigation
Commit 22d731e
Add behavioral tests for the NanoTabICL guide examples (#1237)
# Summary
Add regression coverage for the executable NanoTabICL guide examples and
their model components.
# Description of the change
Execute the guide's Python blocks directly to keep tests aligned with
the published examples. Cover context and query isolation, permutation
behavior, readout shapes, both context-label injection stages, invalid
labels, empty queries, and feature-grouping offsets, wraparound,
projection, and input dimensions. Parameterize forward checks across
float32 and float64 with CPU and CUDA coverage, and initialize attention
outputs so behavioral checks exercise attention.
# Validation
Validation was not run; changes were inspected only.
[View coding
task](https://app.coderabbit.ai/code/tasks/f72b503c-ee72-43be-8abd-658f82274d17?source=coding_agent_github_pr_description)
---------
Co-authored-by: Aaron Zolnai-Lucas <azolnailucas@nvidia.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Ard <88337265+aw471@users.noreply.github.com>
Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>1 parent 01d13c9 commit 22d731e
2 files changed
Lines changed: 25 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
273 | 274 | | |
274 | | - | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments