onnx-mlir icon indicating copy to clipboard operation
onnx-mlir copied to clipboard

fixes for SeqType and sequence ops

Open sorenlassen opened this issue 2 years ago • 2 comments

As I implemented OptType in PR #1589 I noticed some issues with SeqType and sequence ops that are solved here:

  1. SeqType required its element type to be a ShapedType, which conflicts with its use with a map element type in ZipMap
  2. the SequenceConstruct op decomposition didn't support most data types
  3. we didn't infer shapes for the SequenceConstruct op

Note that Conversion/KrnlToLLVM/KrnlToLLVMHelper now depends on Dialect/ONNX/ONNXOpsHelper for mlirTypeToOnnxType. Please let me know if there's a better way to reuse this logic.

sorenlassen avatar Aug 08 '22 07:08 sorenlassen

@chentong319 is the person on our end that did a lot of the sequences. I really would like him to review it, he is currently away for another 2 weeks, would that be ok with you?

AlexandreEichenberger avatar Aug 09 '22 14:08 AlexandreEichenberger

@chentong319 is the person on our end that did a lot of the sequences. I really would like him to review it, he is currently away for another 2 weeks, would that be ok with you?

that's ok, I'm happy to wait

sorenlassen avatar Aug 09 '22 16:08 sorenlassen

@chentong319 thank you for the review. Please merge it for me.

sorenlassen avatar Aug 24 '22 18:08 sorenlassen

@sorenlassen Please resolve the conflict. I will try to merge this PR first once it passes the test.

chentong319 avatar Aug 24 '22 20:08 chentong319

@sorenlassen Please resolve the conflict. I will try to merge this PR first once it passes the test.

@chentong319: done

sorenlassen avatar Aug 24 '22 20:08 sorenlassen

Jenkins Linux s390x Build #7143 [push] fixes for SeqType and se... started at 07:34

jenkins-droid avatar Aug 25 '22 11:08 jenkins-droid

Jenkins Linux amd64 Build #7127 [push] fixes for SeqType and se... started at 06:34

jenkins-droid avatar Aug 25 '22 11:08 jenkins-droid

Jenkins Linux amd64 Build #7127 [push] fixes for SeqType and se... passed after 1 hr 7 min

jenkins-droid avatar Aug 25 '22 12:08 jenkins-droid

Jenkins Linux s390x Build #7143 [push] fixes for SeqType and se... passed after 1 hr 29 min

jenkins-droid avatar Aug 25 '22 13:08 jenkins-droid