Skip to content

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