Skip to content

[Relax][PyTorch] Support aten.scatter.src in ExportedProgram importer#19935

Open
V-aerus wants to merge 1 commit into
apache:mainfrom
V-aerus:relax-pytorch-scatter-src
Open

[Relax][PyTorch] Support aten.scatter.src in ExportedProgram importer#19935
V-aerus wants to merge 1 commit into
apache:mainfrom
V-aerus:relax-pytorch-scatter-src

Conversation

@V-aerus

@V-aerus V-aerus commented Jul 4, 2026

Copy link
Copy Markdown

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

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant