Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the param.ds_tensor from print #3928

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

HeyangQin
Copy link
Contributor

Credit to Lev for locating this!
Python will format the f-string even if print_rank_0 is not actually printing. So using param.ds_tensor there could cause unnecessary performance overhead. This PR removes this call.

@HeyangQin HeyangQin added this pull request to the merge queue Jul 11, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 11, 2023
@mrwyattii mrwyattii added this pull request to the merge queue Jul 12, 2023
Merged via the queue into master with commit e59f69a Jul 12, 2023
@HeyangQin HeyangQin deleted the HeyangQin/remove_costly_print branch July 12, 2023 19:40
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.

4 participants