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

Split inferShapes and add verify to PRelu Op.

Open redbopo opened this issue 2 years ago • 17 comments

First pull request on onnx-mlir, mostly follow the code like Pow Op. Maybe need to add some error test, but not quite sure.

redbopo avatar Mar 15 '22 15:03 redbopo

Can one of the admins verify this patch?

jenkins-droid avatar Mar 15 '22 15:03 jenkins-droid

@jenkins-droid test this please

AlexandreEichenberger avatar Mar 15 '22 15:03 AlexandreEichenberger

Thanks @AlexandreEichenberger and @tungld . I also notice the func @test_pow_verifier_1() in invalud.mlir with no expected-error, And need another patch to fix it.

redbopo avatar Mar 16 '22 18:03 redbopo

Can one of the admins verify this patch?

jenkins-droid avatar Mar 16 '22 18:03 jenkins-droid

@jenkins-droid test this please

tungld avatar Mar 22 '22 00:03 tungld

@redbopo could you resolve the conflict and fix the DCO issue? You can click on Details of DCO and follow the instruction.

I also notice the func @test_pow_verifier_1() in invalud.mlir with no expected-error,

Thanks for finding this! It's ok to fix it here if you are interested.

tungld avatar Mar 22 '22 01:03 tungld

@redbopo any progress on this? thanks!

tungld avatar Apr 01 '22 08:04 tungld

@tungld sorry for late reply. I will do a check soon.

redbopo avatar Apr 07 '22 15:04 redbopo

Can one of the admins verify this patch?

jenkins-droid avatar Apr 07 '22 15:04 jenkins-droid

Can one of the admins verify this patch?

jenkins-droid avatar Apr 07 '22 15:04 jenkins-droid

Thanks @tungld , fix DCO and currently I not deal with test_pow_verifier_1() in this patch , will do it in another .

redbopo avatar Apr 07 '22 17:04 redbopo

@jenkins-droid test this please

tungld avatar Apr 08 '22 00:04 tungld

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 11 '22 09:04 CLAassistant

Can one of the admins verify this patch?

jenkins-droid avatar Apr 13 '22 13:04 jenkins-droid

Can one of the admins verify this patch?

jenkins-droid avatar Apr 13 '22 13:04 jenkins-droid

Hello @tungld , aggreed to CLA now, and merge the main branch. Is that only first time to contribute , will need this CLA and jenkins-droid cannot auto-run ?

redbopo avatar Apr 13 '22 13:04 redbopo

I believe the first few times you need approval of folks with more privileges.

AlexandreEichenberger avatar Apr 14 '22 15:04 AlexandreEichenberger

@redbopo could you please resolve the conflicts and address the above comment? Thanks!

tungld avatar Aug 22 '22 02:08 tungld

Can one of the admins verify this patch?

jenkins-droid avatar Aug 31 '22 15:08 jenkins-droid

Can one of the admins verify this patch?

jenkins-droid avatar Aug 31 '22 15:08 jenkins-droid

@redbopo I saw clang-format failed with this info:

--- ./src/Dialect/ONNX/ONNXOps.cpp	(original)
+++ ./src/Dialect/ONNX/ONNXOps.cpp	(reformatted)
@@ -1133,7 +1133,8 @@
 
 LogicalResult ONNXPReluOp::verify() {
   ArrayRef<int64_t> xShape = X().getType().cast<ShapedType>().getShape();
-  ArrayRef<int64_t> slopeShape = slope().getType().cast<ShapedType>().getShape();
+  ArrayRef<int64_t> slopeShape =
+      slope().getType().cast<ShapedType>().getShape();
 
   // PRelu supports unidirectional broadcasting, that is slope should be
   // unidirectional broadcastable to input X.

Please update your code accordingly. Thanks!

tungld avatar Sep 01 '22 05:09 tungld

Can one of the admins verify this patch?

jenkins-droid avatar Sep 01 '22 15:09 jenkins-droid

Thanks for review @tungld . Format fix now.

redbopo avatar Sep 01 '22 15:09 redbopo

@redbopo you forgot signing DCO for some last commits, please sign and it's ready to merge. Thanks!

tungld avatar Sep 02 '22 04:09 tungld

Can one of the admins verify this patch?

jenkins-droid avatar Sep 02 '22 11:09 jenkins-droid

Can one of the admins verify this patch?

jenkins-droid avatar Sep 02 '22 11:09 jenkins-droid

Sorry for that. DCO success now. @tungld

redbopo avatar Sep 02 '22 11:09 redbopo

@jenkins-droid test this please

tungld avatar Sep 02 '22 11:09 tungld

Jenkins Linux ppc64le Build #6441 [push] Split inferShapes and ad... started at 10:02

jenkins-droid avatar Sep 02 '22 14:09 jenkins-droid

Jenkins Linux s390x Build #7392 [push] Split inferShapes and ad... started at 10:01

jenkins-droid avatar Sep 02 '22 14:09 jenkins-droid