PhilippvK opened a new pull request #9256: URL: https://github.com/apache/tvm/pull/9256
## Motivation Having an ability to overwrite the mapping from TFLite Operators to TVM Relay Operators via downstream python scripts is desirable to: - Add support for unsupported builtin or even custom operators by adding a hand-written convert function - Enable a possibility to overwrite existing convert functions for supported operators by alternative implementations (useful for currently unsupported edge cases) ## Changes - Add optional argument `op_converter` to `tvm.relay.frontend.from_tflite` function, defaulting to `relay.frontend.tflite.OperatorConverter` - Add `allow_custom_ops ` flag to `OperatorConverter`, which allows to manually add convert function for `CUSTOM` opertator types ## Tests I also came up with a test case added to `tvm/python/frontend/tflite/test_forward.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]
