Skip to content
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

Padded sequences? #57

Closed
drozzy opened this issue Dec 22, 2020 · 3 comments
Closed

Padded sequences? #57

drozzy opened this issue Dec 22, 2020 · 3 comments

Comments

@drozzy
Copy link

drozzy commented Dec 22, 2020

Just curious if this works with padded sequences?
https://pytorch.org/docs/stable/generated/torch.nn.utils.rnn.pad_sequence.html

I have sequences of variable length and I would like to use torchdyn for classification.
Currently I am doing windowing, but I would rather use padding.

@Zymrael
Copy link
Member

Zymrael commented Dec 23, 2020

Hi @drozzy, could you provide a more specific example of what you're trying to do? There are several models in torchdyn, developed for different tasks. Although we have not designed any component with padded seqs in mind, it might be easy to use them with some of these architectures, depending on your objective.

Which torchdyn classes does your classifier utilize?

@drozzy
Copy link
Author

drozzy commented Dec 23, 2020

Maybe my question is wrong. I'm basically working with variable length sequences and I want to do classification using torchdyn.

From torchdyn I'm just using something like:
model = NeuralDE(f, sensitivity='adjoint', solver='dopri5').to(device)

@drozzy
Copy link
Author

drozzy commented Jan 5, 2021

I am not sure what I was asking. I'll close it and re-open it if I figure it out!

@drozzy drozzy closed this as completed Jan 5, 2021
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

No branches or pull requests

2 participants