-
Notifications
You must be signed in to change notification settings - Fork 328
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
[Feature] Max pool Transform #841
Conversation
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.
Great implementation i like it
Can you address the small comments i left?
FYI |
I love the logic so much that I will duplicate it for cat frames :p |
I think the registration of buffers should be fine now |
Oh interesting I did not know about UninitializedBuffer's in PyTorch. I will adapt the code, no problem |
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.
LGTM
Description
A new Transform that does a max pooling of values over time dimension. It was used, for examples, in https://www.nature.com/articles/nature14236 to deal with flickering objects in Atari 2600 environment.
The PR also includes tests for the Transform.
Types of changes
What types of changes does your code introduce? Remove all that do not apply:
Checklist
Go over all the following points, and put an
x
in all the boxes that apply.If you are unsure about any of these, don't hesitate to ask. We are here to help!