mingfeima / convnet-benchmark-py Goto Github PK
View Code? Open in Web Editor NEWPyTorch convnet performance benchmark
PyTorch convnet performance benchmark
I run the script for deploying resnext101, but I can't get any gains with mkldnn and cache-weight.
Here is my runtime information:
./run.sh --inference --single
inference only
using single batch size
using OMP_NUM_THREADS=32
using KMP_AFFINITY=granularity=fine,compact,1,0
using KMP_BLOCKTIME=1
Running on device: Intel(R) Xeon(R) Gold 6142 CPU @ 2.60GHz
Running on torch: 1.4.0
Running on torchvision: 0.5.0
ModelType: resnext101, Kernels: nn Input shape: 1x3x224x224
nn :forward: 236.60 (ms) 4.23 (imgs/s)
nn :backward: 0.00 (ms)
nn :update: 0.00 (ms)
nn :total: 236.60 (ms) 4.23 (imgs/s)
./run.sh --inference --single --mkldnn
ModelType: resnext101, Kernels: nn Input shape: 1x3x224x224
nn :forward: 242.39 (ms) 4.13 (imgs/s)
nn :backward: 0.00 (ms)
nn :update: 0.00 (ms)
nn :total: 242.39 (ms) 4.13 (imgs/s)
./run.sh --inference --single --mkldnn --cache-weight
ModelType: resnext101, Kernels: nn Input shape: 1x3x224x224
nn :forward: 236.43 (ms) 4.23 (imgs/s)
nn :backward: 0.00 (ms)
nn :update: 0.00 (ms)
nn :total: 236.43 (ms) 4.23 (imgs/s)
There is no benifits with mkldnn or cache-weight. I install pytorch by pip, is it the case that build pytorch without icc?
Here is my pytorch built informations:
PyTorch built with:
@mingfeima Can u help me to find why I can't get the benifits that you mentioned?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.