THINKER-ONLY opened a new pull request, #19556:
URL: https://github.com/apache/tvm/pull/19556

   ## Summary
   Add Relax TFLite frontend support for the builtin `REDUCE_WINDOW` operator.
   This covers the ordinary TFLite op only, not `STABLEHLO_REDUCE_WINDOW`.
   
   The converter parses `ReduceWindowOptions` from `BuiltinOptions2`, validates
   the static window attributes, and lowers supported reduce functions through
   `topi.sliding_window` plus Relax reductions.
   
   Supported modes:
   - `ADD`
   - `MUL`
   - `MINIMUM`
   - `MAXIMUM`
   - `ALL`
   - `ANY`
   
   Empty output shapes are handled directly with `relax.op.zeros`. Quantized
   `REDUCE_WINDOW`, dynamic window attributes, and unsupported reduce functions
   remain rejected with explicit errors.
   
   ## Testing
   - `python -m py_compile python/tvm/relax/frontend/tflite/tflite_frontend.py 
tests/python/relax/test_frontend_tflite.py`
   - `python -m pytest tests/python/relax/test_frontend_tflite.py -k 
reduce_window -q -p no:tvm.testing.plugin`
   - `python -m pytest tests/python/relax/test_frontend_tflite.py -k 
"reduce_window or reduction_ops" -q -p no:tvm.testing.plugin`
   - `conda run -n test python -m ruff check 
python/tvm/relax/frontend/tflite/tflite_frontend.py 
tests/python/relax/test_frontend_tflite.py`
   
   ## Related
   Related to #19519.
   


-- 
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]

Reply via email to