-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[PT FE] Add prim::PythonOp #15714
[PT FE] Add prim::PythonOp #15714
Conversation
|
||
class prim_pythonop(torch.nn.Module): | ||
def forward(self, input_tensor): | ||
return torch.add(exp_f(input_tensor), 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add test for DeformableConvolution that we have in models?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This op would add torchvision::deform_conv2d
into unconverted OP, adding test would require to enable this op as well. I think it might be better to enable it in different PR to not mix it up, but if you want, I could enable this in current PR
Co-authored-by: Maxim Vafin <[email protected]>
…into mateuszm/pt/pythonop
Co-authored-by: Maxim Vafin <[email protected]>
* Add PythonOp * Fix deprecation & cleanup * Apply suggestions from code review * Fix dtype * Apply suggestions from code review Co-authored-by: Maxim Vafin <[email protected]> * Update to new tensor names handling * Fix negation * Apply changes from code review * Remove unnecesary imports * Update src/frontends/pytorch/src/op/pythonop.cpp Co-authored-by: Maxim Vafin <[email protected]> --------- Co-authored-by: Maxim Vafin <[email protected]>
Details:
Tickets: