ngraph-tf icon indicating copy to clipboard operation
ngraph-tf copied to clipboard

Performance Degradation after source build inside Docker on Intel i7-5820K CPU

Open sandonair007 opened this issue 6 years ago • 2 comments

Hi there, I am using nGraph to accelerate my model.

As my cpu is not Xeon series, I built nGraph and tensorflow from source inside Docker following Option 2 in README. The build succeeded and pass the model test. However, the inference time is much more slower when using nGraph backend.

CPU: 0.03387284278869629 secs
NGRAPH_CPU: 0.11669778823852539 secs

Could anyone point out possible reason for this?

Btw, I notice there are setting recommendations for Xeon series. (https://ngraph.nervanasys.com/docs/latest/frameworks/generic-configs.html#ngraph-enabled-intel-xeon.) I am wondering if the environment parameter settings would affect a lot.

Any hint is highly appreciated!!

sandonair007 avatar Jan 16 '19 02:01 sandonair007

What DL model you tried for this test?

avijit-nervana avatar Feb 13 '19 13:02 avijit-nervana

I am using a simple model trained on mnist. The model file is borrowed from https://github.com/nex3z/tfmobile-mnist-android. The session is run for multiple times.

sandonair007 avatar Feb 14 '19 04:02 sandonair007