Skip to content

Add filter windows, tensordot #95

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

Merged
merged 5 commits into from
Mar 31, 2023
Merged

Add filter windows, tensordot #95

merged 5 commits into from
Mar 31, 2023

Conversation

ev-br
Copy link
Collaborator

@ev-br ev-br commented Mar 25, 2023

cross-ref #87 (comment)

@ev-br ev-br requested a review from lezcano March 25, 2023 21:04
Copy link
Collaborator

@lezcano lezcano left a comment

Choose a reason for hiding this comment

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

The docs say that M is an int, and so do the examples in the docs. As such, it is the tests that are wrong. We can still make the test pass implementing this undocumented behaviour, or simply remove them. At any rate, M should be of type int or at most Union[int, ArrayLike]. What I'm trying to avoid here is that unconditional wrapping of the int and an unconditional call to item() (which is data dependent and would cause issues when tracing through it).

@ev-br ev-br force-pushed the merge_detail branch 2 times, most recently from e75772d to f9f9ba4 Compare March 27, 2023 20:36
@ev-br
Copy link
Collaborator Author

ev-br commented Mar 27, 2023

The issue here is that an int is an array_like. And this is not the only undocumented behavior seen in the numpy test suite. So far I tried to minimize tweaking numpy tests. So, let's remove these tests?

@lezcano
Copy link
Collaborator

lezcano commented Mar 27, 2023

Removing the tests SGTM

@lezcano
Copy link
Collaborator

lezcano commented Mar 27, 2023

Either that, or modify them to use an int, either is fine really.

Base automatically changed from merge_detail to main March 31, 2023 12:43
@ev-br ev-br merged commit 0e8e6b5 into main Mar 31, 2023
@ev-br ev-br deleted the filter_windows branch March 31, 2023 12:58
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