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

fixed "None type has no len()" #2091

Merged
merged 2 commits into from
Jul 13, 2022
Merged

fixed "None type has no len()" #2091

merged 2 commits into from
Jul 13, 2022

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 microsoft: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