Uploaded image for project: 'Apache MXNet (Retired)'
  1. Apache MXNet (Retired)
  2. MXNET-31

Support variable sequence length in gluon.RecurrentCell

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Done
    • Major
    • Resolution: Fixed
    • None
    • None

    Description

      When the input sequences have different lengths, the common approach is to pad them to the same length and feed the padded data into the recurrent neural network. To deal with this scenario, this PR adds a new valid_length option in unrollvalid_length refers to the real length of the sequences before padding. When the valid_length is given, the last valid state will be returned and the padded portion in the output will be masked to be zero. This feature is essential for implementing a NMT model.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sxjscience Xingjian Shi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m