[Relax][PyTorch] Support aten.scatter.src in ExportedProgram importer#19935
[Relax][PyTorch] Support aten.scatter.src in ExportedProgram importer#19935V-aerus wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds support for the scatter.src operator in the TVM Relax PyTorch exported program translator by mapping it to the _scatter translator method. It also includes a unit test test_scatter_src to verify the correct translation of the operator. There are no review comments to address.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@tvm-bot rerun |
|
Failed to re-run CI in https://github.com/apache/tvm/actions/runs/29066102077 Detailswith response |
|
@tvm-bot rerun |
|
Failed to re-run CI in https://github.com/apache/tvm/actions/runs/29333889095 Detailswith response |
|
Could you resolve the lint issue? Thanks |
This PR adds PyTorch ExportedProgram frontend support for aten.scatter.src by mapping it to the existing scatter conversion path.
The importer already supports scatter.value, and BaseFXGraphImporter already provides _scatter for tensor-source scatter. This patch registers scatter.src in the ExportedProgram convert map and adds a regression test.
Test:
python -m pytest tests/python/relax/test_frontend_from_exported_program.py -k "scatter" -q