Repository navigation
[Relax][Frontend][Torch] Support masked_scatter in from_exported_program - #21049
Open
aliqyan-21 wants to merge 1 commit into
Open
aliqyan-21 wants to merge 1 commit into
aliqyan-21 wants to merge 1 commit into
Conversation
Author
|
CI shows "This commit cannot be built" on all the checks. In the Jenkins log fails at checkout with fatal: couldn't find remote ref refs/pull/21049/head, so it looks like a CI infrastructure issue rather than a build failure. Could a maintainer re-trigger CI? Thanks! cc @tlopex |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #21048
aten.masked_scatter.defaultwas only convertible throughfrom_fx, sofrom_exported_programfailed withUnsupported function types ['masked_scatter.default']._masked_scatterfromfx_translator.pyintoBaseFXGraphImporterand registermasked_scatter.defaultfor the exported-program path.Truein the mask produced index-1, whichtake(mode="fast")doesn't bounds-check. Those lanes are discarded bywhere, but the read itself was out of bounds.maximum.test_masked_scatterfor the exported-program path, comparing numerically against PyTorch (1-D and N-D masks, flat and ranked sources, masks starting withFalse).Also verified on a Gemma-4 FX graph (
graph_007, 6184 ATen nodes, containsmasked_scatter):from_exported_programpreviously failed withUnsupported function types ['masked_scatter.default']. It now converts and the resulting module passescheck_well_formed.