Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information