Commit 8cacea6
refactor: replace uniform_ noise with rand-based formulation for torch.compile
- Replace `empty_like(...).uniform_()` with `rand_like()`-based expression
- Avoid in-place random ops that are problematic for torch.compile / dynamo
- Preserve identical noise range [-half, half] and statistical behavior1 parent 4fbc02f commit 8cacea6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments