8000 Refactor SymbolicMap variable replacement and dimension adjustments by copybara-service[bot] · Pull Request #112147 · tensorflow/tensorflow · GitHub
[go: up one dir, main page]

Skip to content

Refactor SymbolicMap variable replacement and dimension adjustments#112147

Draft
copybara-service[bot] wants to merge 1 commit intomasterfrom
exported_pr_882030835
Draft

Refactor SymbolicMap variable replacement and dimension adjustments#112147
copybara-service[bot] wants to merge 1 commit intomasterfrom
exported_pr_882030835

Conversation

@copybara-service
Copy link

Refactor SymbolicMap variable replacement and dimension adjustments

We have some failing tests in IndexingMap::GetAffineMap() migration to GetSymbolicMap(). After some debugging, I found out the issue relies in SymbolicMap::Replace() method. Similar to AffineMap similar one, it allowed to change the number of dimensions and symbols. But this is a problem in SymbolicMap that results in different bugs since all are mapped to the same kVariable data type.

After some discussions, we decided to not allow SymbolicMap::Replace() to modify the number of dimensions and symbols and instead provide a different method for that (SetNumDimensions). I will create SetNumSymbols if needed in the future.

We have some failing tests in IndexingMap::GetAffineMap() migration to GetSymbolicMap(). After some debugging, I found out the issue relies in SymbolicMap::Replace() method. Similar to AffineMap similar one, it allowed to change the number of dimensions and symbols. But this is a problem in SymbolicMap that results in different bugs since all are mapped to the same kVariable data type.

After some discussions, we decided to not allow SymbolicMap::Replace() to modify the number of dimensions and symbols and instead provide a different method for that (SetNumDimensions). I will create SetNumSymbols if needed in the future.

PiperOrigin-RevId: 882030835
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

0