You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains 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
This PR fixes the update_reshape_attr called for a non-reshape operation. This is from commute_utils in erase inverse ops logic, where this update_reshape_attr function called for squeeze, unsqueeze and transpose ops. So added a condition to only call this for reshape ops.
ashokkumarkannan1
changed the title
Condition based reshape attr update
Fix: Calling update reshape attribute function for non reshape ops
Jan 21, 2025
@ashokkumarkannan1 how does this affect this PR #833? Here, one of the problems was that we called update reshape for squeeze op...
@dgolubovicTT This update_reshape_attr function is the first issue we faced even for XGLM model. After this fix only, we got this issue with `ttir.squeeze.
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.
Fix: #816
This PR fixes the
update_reshape_attr called for a non-reshape operation
. This is from commute_utils in erase inverse ops logic, where thisupdate_reshape_attr
function called for squeeze, unsqueeze and transpose ops. So added a condition to only call this for reshape ops.Logs
Tested for Bart model and verified.
Log Before Fix - test_bart_without_fix.log
Log After Fix - test_bart_with_fixt.log