javierdejesusda opened a new pull request, #19850:
URL: https://github.com/apache/tvm/pull/19850
### Motivation
`torch.atan2` was not registered in either the ExportedProgram or FX
frontend,
so importing a model that uses it failed with an "Unsupported function types"
error. The `relax.op.atan2` operator already exists and legalizes to
`topi.atan2`, so the frontends only needed to route the op to it.
### Changes
- Register `atan2` in the FX frontend and `atan2.default` in the
ExportedProgram
frontend, reusing the shared `_binary_op` helper (the same pattern as the
existing `maximum`/`minimum`/`logaddexp` converters).
- Add a structural test in `test_frontend_from_fx.py` and
`test_frontend_from_exported_program.py`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]