Fix the way pad_sequence checks for non-tensor attributes of tensorclasses. Also raise an error if pad_sequence is given tensorclasses with return_mask=True, since we cannot add the "masks" attribute with <tensorclass>.set().
Motivation and Context
close #783
[x] I have raised an issue to propose this change (required for new features and bug fixes)
Types of changes
What types of changes does your code introduce? Remove all that do not apply:
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds core functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (update in the documentation)
[ ] Example (update in the folder of examples)
Checklist
Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!
Description
Fix the way
pad_sequence
checks for non-tensor attributes of tensorclasses. Also raise an error ifpad_sequence
is given tensorclasses withreturn_mask=True
, since we cannot add the "masks" attribute with<tensorclass>.set()
.Motivation and Context
close #783
Types of changes
What types of changes does your code introduce? Remove all that do not apply:
Checklist
Go over all the following points, and put an
x
in all the boxes that apply. If you are unsure about any of these, don't hesitate to ask. We are here to help!