Details
-
Improvement
-
Status: To Do
-
Minor
-
Resolution: Unresolved
-
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
- links to