Skip to content

Al/math/minpooling #410

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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Al/math/minpooling #410

wants to merge 9 commits into from

Conversation

Pwhsky
Copy link
Collaborator

@Pwhsky Pwhsky commented Aug 6, 2025

No description provided.

if self.get_backend() == "numpy":
return self._get_numpy(image, ksize, **kwargs,)
elif self.get_backend() == "torch":
return self._get_torch(image, ksize, **kwargs,)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer to check the type of the image, instead of checking the backend. So "if apc.is_torch_array(array): ...", like we have done in several of the features. But I don't think that the way it is done now is wrong

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can always do both but I think maintaining consistency is more important in this case like you pointed out.

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