-
Notifications
You must be signed in to change notification settings - Fork 1
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
Smartpooling #7
base: master
Are you sure you want to change the base?
Smartpooling #7
Conversation
new_lens = new_lens / new_lens.sum(1, keepdim=True) * (features.size(1) / self.smartpooling_factor) # Reducing the original length T by some factor | ||
|
||
features, interp_weights = self.warp(features, new_lens) | ||
if padding_mask is not None : |
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.
Padding mask oznacza które kolumny są poza danymi, więc paddingu nie skracamy, to co trzeba zrobić to skrócić te cześci unpadded, a potem sprawdzić który jest najdłuższy i spadować resztę.
…s implemented for every sequence in batch separately.
c1d6f81
to
2acbd29
Compare
Tak na szybko, to to chyba jest OK, natomiast muszę do tego poolingu zrobić jakąś wizualizację żeby zobaczyć jak on działa. To co na pewno chcemy (nie wiem czy tak jest), to żeby pochodna propagowała się do wegtora z nowymi długościami - wyobrażam sobie, że to działa tak, że jak np mamy nowe długości: |
… all of the baseline results for smartpooling
Initial implementation of smartpooling operation.