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

Make the ONNX export code accept an op interface rather than the enum itself #245

Merged
merged 4 commits into from Jul 25, 2022

Conversation

Craigacp
Copy link
Member

Description

Introduces the ONNXOperator interface to allow users to insert custom ONNX ops, or ones using different opsets than opset 13 which is the base version Tribuo supports. The existing ONNXOperators enum now implements ONNXOperator, and in a future version of Tribuo we'll rename this to ONNXOpset13 and split out the ONNX ML operators to a separate enum.

Motivation

Currently Tribuo is limited to the ops available in ONNXOperators, this makes the ONNX model construction code insufficiently flexible.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 24, 2022
Copy link
Member

@JackSullivan JackSullivan left a comment

Choose a reason for hiding this comment

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

Just some minor clarification of error messages in ONNXOperator.build and it should be good to go.

Copy link
Member

@JackSullivan JackSullivan left a comment

Choose a reason for hiding this comment

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

Looks good to me

@Craigacp Craigacp merged commit 4c12343 into oracle:main Jul 25, 2022
@Craigacp Craigacp deleted the onnx-generification branch July 25, 2022 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants