Skip to content
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

Update interaction.py #1612

Merged
merged 2 commits into from
Mar 5, 2023
Merged

Update interaction.py #1612

merged 2 commits into from
Mar 5, 2023

Conversation

stellarkey
Copy link
Contributor

@stellarkey stellarkey commented Dec 31, 2022

after np.argsort, the index is a tensor, thus can not be sliced by negative stride: [::-1]. Need to transform index into NumPy array explicitly.
Also, [::-1] is only a view, [::-1].copy() makes it compatible with _reindex().

after `np.argsort`, the index is a tensor, thus can not be sliced by negative stride: [::-1].
Need to transform index into NumPy array explicitly.
@Sherry-XLL Sherry-XLL requested a review from Wicknight February 3, 2023 12:18
@Wicknight Wicknight merged commit 8332e8a into RUCAIBox:master Mar 5, 2023
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.

2 participants