-
Notifications
You must be signed in to change notification settings - Fork 382
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
Dictionary Input and Custom Collate Function #1050
Comments
The default
Just to be sure,
Again, if you could provide some code and (dummy) data, it would help us to figure out your issue. |
It's not clear to me how to combine dictionary input (which is the suggested solution for multiple input models, and RNNs) with a custom collate function for by-batch padding of sequences. I know by default the dictionary is unpacked when passing into the forward function, but I can't imagine that's true for the collate_fn. So does it assume that the collate_fn takes in also (X,y) as a tuple, where X is a SliceDict? How do we unpack that SliceDict?
Also, I'm not sure how to actually use SliceDict for variable sequence data. It doesn't seem to accept a list of tensors.
I would prefer to use a Dataset I defined, but not clear how to handle multiple inputs in that case.
The text was updated successfully, but these errors were encountered: