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

Adding support for integer indexes in SequenceMask, SequenceReverse, SequenceLast

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: To Do
    • Minor
    • Resolution: Unresolved
    • Apache MXNet Backend
    • None

    Description

      Currently the Sequence* family of operators, all of which take in an input array and optionally an array of valid sequence_length's, require the sequence_length array to have the same dtype as the input array.

      If users have their sequence_length array stored as an int32 array, which is natural for storing indexes, they must first convert/cast their array to float32 before being able to use it on float32 input arrays.

      Other similar operators, e.g. take, do not have this requirement.

      Additionally, it looks like the CTC operator is using an alternative implementation of SequenceMask that also doesn't have this limitation (but is not registered as an MxNet operator and so is unusable outside of the backend codebase).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stephenrawls Stephen Rawls
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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