Skip to content

Conversation

@xiazeyu
Copy link
Contributor

@xiazeyu xiazeyu commented Jul 13, 2022

When using autotunning to calculate throughput with transformer < 4.16.2, It breaks with None type has no len().

It seems elapsed_records is still None when being called at the first run.

This modification helps to save elapsed to self.elapsed_records, so that it won't throw an exception.

@tjruwase tjruwase removed the request for review from xiaoxiawu-microsoft July 13, 2022 14:51
@cli99
Copy link
Contributor

cli99 commented Jul 13, 2022

@xiazeyu, thanks for catching this bug!

@cli99 cli99 enabled auto-merge (squash) July 13, 2022 17:52
@cli99 cli99 merged commit b052378 into deepspeedai:master Jul 13, 2022
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.

2 participants