Skip to content

Dictionary Input and Custom Collate Function #1050

@meepd

Description

@meepd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions