Skip to content

Variable-sized input sequence #23

@cudacaffe

Description

@cudacaffe

Hello there,
I have variable-sized sequences as an input and each token in the sequence is encoded in a D dim vector.
To store the data efficiently they are zero padded, that is, each sequence is stored as a DxM matrix, for
the first sequence, only the first m1 columns are non-zeros, and for the second sequence only the first
m2 columns are non-zeros, and so on.
I was wondering how to feed this kind of input into the network, so the padded part is ignored as it
should be, perhaps by setting "clip" somehow?
Many thanks for your help.
CC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions