-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(pt): fix get_dim
for DescrptDPA1Compat
#4007
Conversation
WalkthroughWalkthroughThe recent changes introduce a new method, Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Descriptor
Client->>Descriptor: call get_dim_out()
Descriptor->>Descriptor: check self.concat_output_tebd
alt concat_output_tebd is True
Descriptor->>Descriptor: return base_dim + self.tebd_dim
else concat_output_tebd is False
Descriptor->>Descriptor: return base_dim
end
Descriptor-->>Client: output dimension
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (2)
Files skipped from review as they are similar to previous changes (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you cherry-pick 3ae035f which can fail the tests before this fix
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #4007 +/- ##
=======================================
Coverage 82.92% 82.92%
=======================================
Files 522 522
Lines 51010 51012 +2
Branches 3023 3023
=======================================
+ Hits 42301 42303 +2
Misses 7767 7767
Partials 942 942 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
- [x] (Tomorrow) Test if it works for deepmodeling#3997. deepmodeling#3997 needs another fix in deepmodeling#4022 . <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a method to dynamically determine the output dimension of the descriptor, enhancing its functionality and interaction with other components. - Improved tensor dimensionality handling in tests to ensure compatibility with the new output dimension method. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
#3997 needs another fix in #4022 .
Summary by CodeRabbit