Commit 4679d0a
committed
[BugFix] Fix SliceSampler for torch.compile compatibility
Convert seq_length to tensor before torch.where operations to avoid
torch.compile inductor C++ codegen bugs with mixed scalar/tensor int64
in blendv operations.
ghstack-source-id: 8e546ee
Pull-Request: #32981 parent d7ef78b commit 4679d0a
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2090 | 2090 | | |
2091 | 2091 | | |
2092 | 2092 | | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
2093 | 2100 | | |
2094 | | - | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
2095 | 2105 | | |
2096 | | - | |
2097 | 2106 | | |
2098 | 2107 | | |
2099 | 2108 | | |
2100 | 2109 | | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
2101 | 2117 | | |
2102 | 2118 | | |
2103 | 2119 | | |
| |||
0 commit comments