-
Notifications
You must be signed in to change notification settings - Fork 54
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
Support slicing in MultiEmbeddingTensor
#217
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #217 +/- ##
==========================================
+ Coverage 92.29% 92.53% +0.23%
==========================================
Files 109 109
Lines 5061 5210 +149
==========================================
+ Hits 4671 4821 +150
+ Misses 390 389 -1 ☔ View full report in Codecov by Sentry. |
4079707
to
e39f377
Compare
for more information, see https://pre-commit.ci
MultiEmbeddingTensor
MultiEmbeddingTensor
…rch-frame into aki/feat-met-slice
for more information, see https://pre-commit.ci
…rch-frame into aki/feat-met-slice
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.
LGTM in general, thanks!
i think we can put some general methods to parent class _MultiTensor
to allow more code sharing with MultiNestedTensor
.
Co-authored-by: Weihua Hu <weihua916@gmail.com> Co-authored-by: Zecheng Zhang <zecheng@kumo.ai> Co-authored-by: Yiwen Yuan <yyuanlisette@gmail.com>
Co-authored-by: Weihua Hu <weihua916@gmail.com>
for more information, see https://pre-commit.ci
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.
LGTM after avoiding for-loop via batched_arange
(see here). Thank you.
Part of #88. Unblocks #194 and #206.