Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DialectBuilder] add helper function for building ONNXSumOp and ONNXConvOp nodes #2572

Merged
merged 10 commits into from
Nov 13, 2023
Merged

[DialectBuilder] add helper function for building ONNXSumOp and ONNXConvOp nodes #2572

merged 10 commits into from
Nov 13, 2023

Conversation

ashay
Copy link
Contributor

@ashay ashay commented Oct 19, 2023

The DialectBuilder class seems to be missing the function create the
ONNXSumOp and ONNXConOp nodes and check their shape. This patch adds
the necessary functions.

@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

@ashay
Copy link
Contributor Author

ashay commented Oct 19, 2023

I'm not sure where unit tests for this kind of change go. Please let me know if you are aware of any related tests that I can mimic. Thanks much!

@ashay ashay requested a review from tungld October 19, 2023 17:45
@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

@ashay ashay changed the title [DialectBuilder] add helper function for building ONNXSumOp nodes [DialectBuilder] add helper function for building ONNXSumOp and ONNXConvOp nodes Oct 20, 2023
Copy link
Collaborator

@AlexandreEichenberger AlexandreEichenberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The DialectBuilder class seems to be missing the function create the
ONNXSumOp and ONNXConOp nodes and check their shape.  This patch adds
the necessary functions.

Signed-off-by: Ashay Rane <[email protected]>
@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

@AlexandreEichenberger
Copy link
Collaborator

@jenkins-droid test this please

@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

@tungld
Copy link
Collaborator

tungld commented Nov 6, 2023

@jenkins-droid test this please

@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

@ashay
Copy link
Contributor Author

ashay commented Nov 8, 2023

@tungld / @AlexandreEichenberger Can I get the permissions required to tell Jenkins to start the build and merge PRs that approved and validated using CI please?

@AlexandreEichenberger
Copy link
Collaborator

@jenkins-droid please test this

Copy link
Collaborator

@AlexandreEichenberger AlexandreEichenberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlexandreEichenberger
Copy link
Collaborator

@jenkins-droid test this please

@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

@ashay
Copy link
Contributor Author

ashay commented Nov 10, 2023

Now that the checks pass and the branch doesn't need to be updated (from main), can someone merge this PR please? Thanks!

@AlexandreEichenberger
Copy link
Collaborator

Will do

@AlexandreEichenberger AlexandreEichenberger merged commit b618e71 into onnx:main Nov 13, 2023
5 checks passed
@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #12387 [push] [DialectBuilder] add bui... started at 12:10

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #13368 [push] [DialectBuilder] add bui... started at 11:02

@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #13394 [push] [DialectBuilder] add bui... started at 12:02

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #13368 [push] [DialectBuilder] add bui... failed after 1 hr 23 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #13394 [push] [DialectBuilder] add bui... passed after 1 hr 27 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #12387 [push] [DialectBuilder] add bui... passed after 1 hr 57 min

@ashay ashay deleted the ashay/add-sum-op-helper-in-dialect-builder branch November 13, 2023 19:16
cjvolzka added a commit to cjvolzka/onnx-mlir that referenced this pull request Nov 15, 2023
* detect LayerNorm in presence of reciprocal and div of 1 (onnx#2609)

Signed-off-by: Alexandre Eichenberger <[email protected]>

* [NNPA] Use F16 as element type for zTensor (onnx#2611)

* Use f16 as element type for zTensor

Signed-off-by: Tung D. Le <[email protected]>

---------

Signed-off-by: Tung D. Le <[email protected]>

* Layernorm: convert instance norm and group norm to layer norm. (onnx#2595)

Signed-off-by: Alexandre Eichenberger <[email protected]>
Co-authored-by: Tung D. Le <[email protected]>

* Parse and set --mcpu in onnx-mlir-opt command (onnx#2614)

Signed-off-by: Tung D. Le <[email protected]>

* Import dim_param for model inputs and outputs (onnx#2616)

* Import dim_param for model inputs and outputs
* use argument attributes

Signed-off-by: Tung D. Le <[email protected]>

---------

Signed-off-by: Tung D. Le <[email protected]>
Co-authored-by: Alexandre Eichenberger <[email protected]>

* [DialectBuilder] add builder funcrions for ONNXSumOp and ONNXConvOp (onnx#2572)

The DialectBuilder class seems to be missing the function create the
ONNXSumOp and ONNXConOp nodes and check their shape.  This patch adds
the necessary functions.

Signed-off-by: Ashay Rane <[email protected]>
Signed-off-by: Alexandre Eichenberger <[email protected]>
Co-authored-by: Alexandre Eichenberger <[email protected]>

* [StableHLO] Lowers PadOp (constant mode) & GatherElements Op to StableHLO (onnx#2602)

* [Stablehlo] Pad constant mode & GatherElements to Stablehlo

Signed-off-by: chongsong.chen <[email protected]>
Signed-off-by: Yan Xu <[email protected]>
Co-authored-by: chongsong.chen <[email protected]>
Co-authored-by: Alexandre Eichenberger <[email protected]>

* [build] Add cmake option to enable/disable Java components build (onnx#2613)

* Add ONNX_MLIR_ENABLE_JAVA cmake option (default TRUE)

Signed-off-by: Boyana Norris <[email protected]>
Co-authored-by: Alexandre Eichenberger <[email protected]>

Co-authored-by: Alexandre Eichenberger <[email protected]>
Co-authored-by: Tung D. Le <[email protected]>
Co-authored-by: Ashay Rane <[email protected]>
Co-authored-by: Yan Xu <[email protected]>
Co-authored-by: chongsong.chen <[email protected]>
Co-authored-by: Boyana Norris <[email protected]>
cjvolzka added a commit to cjvolzka/onnx-mlir that referenced this pull request Nov 15, 2023
* 'main' of github.ibm.com:zosdev/onnx-mlir:
  Use dim_params in dynamic dimension analysis (onnx#2620)
  Update rapidcheck to include the fix for missing <cstdint> include (onnx#2623)
  Initial changes for llvm uplift (onnx#2568)
  [build] Add cmake option to enable/disable Java components build (onnx#2613)
  [StableHLO] Lowers PadOp (constant mode) & GatherElements Op to StableHLO (onnx#2602)
  [DialectBuilder] add builder funcrions for ONNXSumOp and ONNXConvOp (onnx#2572)
  Import dim_param for model inputs and outputs (onnx#2616)
  Parse and set --mcpu in onnx-mlir-opt command (onnx#2614)
  Layernorm: convert instance norm and group norm to layer norm. (onnx#2595)
  [NNPA] Use F16 as element type for zTensor (onnx#2611)
  detect LayerNorm in presence of reciprocal and div of 1 (onnx#2609)

# Conflicts:
#	test/mlir/conversion/onnx_to_krnl/NN/Normalization_O3_SIMD_canonicalize.mlir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants