Skip to content

Remove the param.ds_tensor from print - #3928

Merged
mrwyattii merged 1 commit into
masterfrom
HeyangQin/remove_costly_print
Jul 12, 2023
Merged

mrwyattii merged 1 commit into
masterfrom
HeyangQin/remove_costly_print

Conversation

@HeyangQin

Copy link
Copy Markdown
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