-
Notifications
You must be signed in to change notification settings - Fork 57
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
base: develop
Are you sure you want to change the base?
Al/math/minpooling #410
Conversation
if self.get_backend() == "numpy": | ||
return self._get_numpy(image, ksize, **kwargs,) | ||
elif self.get_backend() == "torch": | ||
return self._get_torch(image, ksize, **kwargs,) |
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.
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
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.
We can always do both but I think maintaining consistency is more important in this case like you pointed out.
No description provided.