Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Update retrievers.py in RAG #3881

Merged
merged 2 commits into from
Aug 2, 2021
Merged

Update retrievers.py in RAG #3881

merged 2 commits into from
Aug 2, 2021

Conversation

jianguoz
Copy link
Contributor

Fixed a small error for handling NaN value in scores.

Patch description

scores.fill_(1) will change all values in scores to 1, while there are values that are not NaN.

Testing steps

Other information

Fixed a small error for handling `NaN` value in scores. 

`scores.fill_(1)` will change all values in scores to 1, while there are values that are not `NaN`.
@klshuster
Copy link
Contributor

looks good, can you please run bash autoformat.sh from the top level ParlAI directory and resubmit?

cc @stephenroller we need to get precommit setup i believe

@jianguoz
Copy link
Contributor Author

looks good, can you please run bash autoformat.sh from the top level ParlAI directory and resubmit?

cc @stephenroller we need to get precommit setup i believe

Thanks very much for the instructions! I have reformatted the code using pre-commit

Copy link
Contributor

@klshuster klshuster left a comment

Choose a reason for hiding this comment

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

thank you!

@jianguoz jianguoz merged commit a4cfbcf into master Aug 2, 2021
@jianguoz jianguoz deleted the jianguoz-patch-1-1 branch August 2, 2021 23:31
jianguoz added a commit that referenced this pull request Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants