Skip to content

Create repr functions for OpSchema #5117

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

Merged
merged 7 commits into from
Apr 19, 2023

Conversation

justinchuby
Copy link
Member

Description

Create repr functions for OpSchema

Example

OpSchema(
    name='aten_abs',
    domain='onnxscript.atenlib',
    since_version=1,
    doc='abs(Tensor self) -> Tensor',
    type_constraints=[OpSchema.TypeConstraintParam(type_param_str='T', allowed_type_strs=['tensor(int64)'], description='Foo')],
    inputs=[OpSchema.FormalParameter(name='self', type_str='T', description='', param_option=<FormalParameterOption.Single: 0>, is_homogeneous=True, min_arity=1, differentiation_category=<DifferentiationCategory.Unknown: 0>)],
    outputs=[OpSchema.FormalParameter(name='return_val', type_str='T', description='', param_option=<FormalParameterOption.Single: 0>, is_homogeneous=True, min_arity=1, differentiation_category=<DifferentiationCategory.Unknown: 0>)],
    attributes={}
)

Motivation and Context

Follow up of #5019

@justinchuby justinchuby requested a review from a team as a code owner April 11, 2023 19:16
@justinchuby justinchuby force-pushed the justinchu/opschema-repr branch from 86faa1c to 10554a3 Compare April 11, 2023 19:17
Signed-off-by: Justin Chu <justinchu@microsoft.com>
@justinchuby justinchuby force-pushed the justinchu/opschema-repr branch from 10554a3 to 2bf759a Compare April 11, 2023 22:29
justinchuby and others added 3 commits April 12, 2023 00:28
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
@justinchuby
Copy link
Member Author

@jcwchen @gramalingam

@gramalingam
Copy link
Contributor

Do we need to increase the CI time-limit? We seem to have one time-out failure

@jcwchen jcwchen enabled auto-merge (squash) April 19, 2023 18:31
@jcwchen jcwchen merged commit aa1f3f7 into onnx:main Apr 19, 2023
adityagoel4512 pushed a commit to adityagoel4512/onnx that referenced this pull request Jul 28, 2023
* Create repr functions for OpSchema

Signed-off-by: Justin Chu <justinchu@microsoft.com>

* Format output

Signed-off-by: Justin Chu <justinchu@microsoft.com>

* Format

Signed-off-by: Justin Chu <justinchu@microsoft.com>

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Co-authored-by: Chun-Wei Chen <jacky82226@gmail.com>
Signed-off-by: Aditya Goel <agoel4512@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants