Commit 052dbb4
Streamlined Rearrange in SpatialAttentionBlock (#8130)
The Rearrange code failed dynamo export in 24.09 container:
pytorch/pytorch#137629
While we can't still use dynamo export with TRT in 23.09, I also noticed
that my workaround improved runtime by about 1 second end-to-end for 100
seconds run.
### Description
Replaced einops Rearrange with reshape/transpose
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
---------
Signed-off-by: Boris Fomitchev <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 35b3894 commit 052dbb4
1 file changed
+3
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 74 | + | |
91 | 75 | | |
92 | | - | |
93 | | - | |
| 76 | + | |
94 | 77 | | |
95 | | - | |
| 78 | + | |
96 | 79 | | |
97 | 80 | | |
0 commit comments