-
Notifications
You must be signed in to change notification settings - Fork 404
Open
Labels
Description
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.