Commit 33cf0a4
Han Wang
test(pt_expt): keep the DPA4 dense-branch eager reference on CPU
_make_sample_inputs builds tensors on _env.DEVICE, so on a CUDA box the
CPU eager model received CUDA tensors (index_select device mismatch).
Make explicit CPU copies for the eager reference; the artifact call keeps
its separate _env.DEVICE copies, mirroring the graph branch.1 parent b6c3c37 commit 33cf0a4
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
179 | 183 | | |
180 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
| |||
0 commit comments