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

Overloaded custom operators in Python are broken #812

Open
borisfom opened this issue Sep 19, 2024 · 1 comment
Open

Overloaded custom operators in Python are broken #812

borisfom opened this issue Sep 19, 2024 · 1 comment

Comments

@borisfom
Copy link

Is overload supported in Python?
When I try doing something like :

@onnx_op(op_type="CustomAdd", inputs=[PyOp.dt_float], outputs =[PyOp.dt_float])
def custom_add_float32(x, y):
    return np.add(x, y)

@onnx_op(op_type="CustomAdd", inputs=[PyOp.dt_float16], outputs=[PyOp.dt_float16])
def custom_add_float16(x, y):
    return np.add(x, y)

I am getting errors:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Type float16 not supported by python customops api
Copy link

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

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

No branches or pull requests

1 participant