[TFLite runtime] Allow to set number of threads to TFLite interpreter#6901
Merged
tqchen merged 2 commits intoapache:mainfrom Nov 12, 2020
Merged
[TFLite runtime] Allow to set number of threads to TFLite interpreter#6901tqchen merged 2 commits intoapache:mainfrom
tqchen merged 2 commits intoapache:mainfrom
Conversation
Co-authored-by: FrozenGene <zhaowu@apache.org>
merrymercy
approved these changes
Nov 11, 2020
FrozenGene
approved these changes
Nov 12, 2020
Member
FrozenGene
left a comment
There was a problem hiding this comment.
Generally, LGTM. Just one minor comment.
| num_threads : int | ||
| The number of threads | ||
| """ | ||
| self._set_num_threads(num_threads) No newline at end of file |
Member
There was a problem hiding this comment.
how about adding one new line at the end of file to meet the requirement of PEP8?
trevor-m
pushed a commit
to trevor-m/tvm
that referenced
this pull request
Dec 2, 2020
…apache#6901) * Support for setting thread count in TFLite runtime, Co-authored-by: FrozenGene <zhaowu@apache.org> * fix lint Co-authored-by: FrozenGene <zhaowu@apache.org>
trevor-m
pushed a commit
to trevor-m/tvm
that referenced
this pull request
Dec 4, 2020
…apache#6901) * Support for setting thread count in TFLite runtime, Co-authored-by: FrozenGene <zhaowu@apache.org> * fix lint Co-authored-by: FrozenGene <zhaowu@apache.org>
trevor-m
pushed a commit
to neo-ai/tvm
that referenced
this pull request
Dec 4, 2020
…apache#6901) * Support for setting thread count in TFLite runtime, Co-authored-by: FrozenGene <zhaowu@apache.org> * fix lint Co-authored-by: FrozenGene <zhaowu@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Co-authored-by: FrozenGene zhaowu@apache.org
This PR lets us set the number of threads used by the TFLite interpreter in order to evaluate TFLite performance over RPC at different thread counts.