This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
This file contains 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
can you please add a link in also do you have ec2 c4.8xlarge numbers? and have you tried arm, e.g. android or Raspberry Pi ? |
@mli i found the newest
i'm not familiar with ARM or Android, @clcarwin would you help test this nnpack on android? thanks. |
I'm busy these days. Maybe I can test it next week on android. |
@clcarwin thanks. it's better test with |
This was referenced Jan 4, 2017
Why large batch_size have better performance |
cache efficiency mostly |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
currently NNPACK only support convolution operator with batch-size=1, and this does'n t utilize fully performance of NNPACK when do inference, so we want to make it more powerful.
set
MXNET_CPU_NNPACK_NTHREADS=4
, before this pr of using NNPACK, run example/image-classification/benchmark_score.py, here is log:after update convolution based on this pr, the log is:
from the log, we can konw that when batch-size > 1, it's also very useful using NNPACK to speed up to 2x~7x.
from now, NNPACK only support max-pooling with kernel=2, stride=2, and pooling_convention=kFull. so the speed log is the same as above which after update conv, because these symbols use pooling_convention=kValid.
after NNPACK support fully-connected , the speed is a litter higher: