Sequence related ops#2249
Conversation
|
Re. updating ops like concat/split: I feel it may be better to introduce new ops (e.g., ConcatSequence) allowing both the older form and newer form. Once implementations stabilize (e.g, if it becomes clear that there is no cost/overhead between the two versions), if necessary, we can deprecate the older form. |
I agree with this. |
|
This is relevant to this PR and maybe even #2244 which brings in Sequence and Map types in ONNX. Do we want to rethink the name |
I agree. There is also an existing operator named |
shinh
left a comment
There was a problem hiding this comment.
Thanks for doing this work! I'm really happy to see this PR since our framework (chainer-compiler) already has similar ops for sequence. Let me ask two questions.
shinh
left a comment
There was a problem hiding this comment.
Let me leave one more comment
Thanks for your comments! These are very helpful suggestions. |
82b81e9 to
a980f1c
Compare
7ba3605 to
cf32e9f
Compare
|
@prasanthpul - can we include this in 1.6? @linkerzhang @houseroad @postrational - for review |
1d8edf1 to
dfa81c6
Compare
|
cc @wschin for review as well. |
dfa81c6 to
15d6506
Compare
|
Ideally, we should make all the sequence ops (except the Concat and Split versions) generic: that is, work for sequences of all kinds, not just sequences of tensors. Unfortunately, our type constraint specification language does not let us specify this currently. The type-constraint specification string allows us to say only things like "sequence(tensor(int))" and we need to generalize this to allow us to say "sequence(tensor(T))" where T denotes a type-variable (either constrained by other constraints or not). It would be great if we could do this, either as part of this PR or as a separate PR, depending on effort required. |
a52e296 to
5c863d6
Compare
1094abd to
5cfd515
Compare
|
Thanks for your review @gramalingam ! |
* sequence related ops * refine docs * extend hasInputShape to Sequence * refining naming and error checking * refine descriptions
Following #2244. This PR adds the first few ops that supports basic sequence functionality in ONNX.