Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Streamlined Rearrange in SpatialAttentionBlock#8130

Merged
KumoLiu merged 6 commits into
Project-MONAI:devfrom
borisfom:fix-rearrange
Oct 22, 2024
Merged

Streamlined Rearrange in SpatialAttentionBlock#8130
KumoLiu merged 6 commits into
Project-MONAI:devfrom
borisfom:fix-rearrange

Conversation

@borisfom

@borisfom borisfom commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

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

  • Non-breaking change (fix or new feature that would not break existing functionality).

@Nic-Ma

Nic-Ma commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

PR looks good to me, please ensure the logic is covered by unit tests.
@yiheng-wang-nv @KumoLiu Please help review this PR.

Thanks.

@KumoLiu KumoLiu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @borisfom, thanks for the update. Overall looks good to me.

We've already code freeze for version 1.4, and QA is expected to complete their testing by the end of this week. As a result, this PR may not be included in the 1.4 release. Thank you for your understanding!

@borisfom

Copy link
Copy Markdown
Contributor Author

/build

@borisfom

Copy link
Copy Markdown
Contributor Author

@KumoLiu : Sure, obviously it doesn't make it to 1.4, so the target is dev branch. Can we get it merged?

@KumoLiu

KumoLiu commented Oct 17, 2024

Copy link
Copy Markdown
Contributor

/build

@KumoLiu KumoLiu enabled auto-merge (squash) October 17, 2024 01:03
@KumoLiu

KumoLiu commented Oct 22, 2024

Copy link
Copy Markdown
Contributor

/build

@KumoLiu KumoLiu merged commit 052dbb4 into Project-MONAI:dev Oct 22, 2024
@borisfom borisfom deleted the fix-rearrange branch October 22, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants