-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set return_dict to false in nlp models (#1004)
## Summary - This PR sets return_dict to false in Albert, Bert, DPR models to avoid the below issue(check logs for full trace) on verify function & replace compare_with_golden with verify ``` for fw, co in zip(fw_out, co_out): if verify_cfg.verify_dtype: > if fw.dtype != co.dtype: E AttributeError: 'dict' object has no attribute 'dtype' ``` - for Models having pcc drop, New argument added to VerifyConfig to disable pcc check. Before Fix: - [before_fix.zip](https://github.com/user-attachments/files/18301228/before_fix.zip) After Fix: - [after_fix.zip](https://github.com/user-attachments/files/18301237/after_fix.zip)
- Loading branch information
1 parent
f7a8119
commit 1db1f92
Showing
5 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
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 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 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 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 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