Skip to content

Al/math/minpooling - #410

Merged
giovannivolpe merged 20 commits into
developfrom
AL/math/minpooling
Sep 5, 2025
Merged

giovannivolpe merged 20 commits into
developfrom
AL/math/minpooling

Conversation

@Pwhsky

@Pwhsky Pwhsky commented Aug 6, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread deeptrack/math.py
Comment thread deeptrack/math.py Outdated
Comment thread deeptrack/math.py Outdated
Comment thread deeptrack/math.py Outdated
Comment thread deeptrack/math.py Outdated
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
Copy Markdown
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
Copy Markdown
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.

@giovannivolpe
giovannivolpe merged commit dc302ba into develop Sep 5, 2025
25 checks passed
@giovannivolpe
giovannivolpe deleted the AL/math/minpooling branch September 5, 2025 12:41
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.

3 participants