guan404ming opened a new pull request, #18677: URL: https://github.com/apache/tvm/pull/18677
## Why
The `batch_flatten` operator was needed for CoreML backend support but was
not implemented in Relax, causing the CoreML
pattern and converter to be commented out.
## How
- Add C++ operator `relax.nn.batch_flatten` with struct info inference
- Add Python wrapper in `relax.op.nn`
- Add legalization via `topi.reshape`
- Enable CoreML pattern and converter for `nn.batch_flatten`
- Add unit tests for operator, struct info inference, and legalization
--
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]
