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

no perforamnce improvement with GPU #3

Open
xuyuan opened this issue Nov 21, 2018 · 1 comment
Open

no perforamnce improvement with GPU #3

xuyuan opened this issue Nov 21, 2018 · 1 comment

Comments

@xuyuan
Copy link

xuyuan commented Nov 21, 2018

I have benchmarked with resnet50, resnet101, the bn_fusion performance improves with CPU (about 7%), but no improvement with cuda.
There is no noticeably difference between torch.cuda.cudnn.benchmark true and false.
My guess is that cudnn can optimize such case really good already.

my test code: https://github.com/xuyuan/pytorch_bn_fusion/blob/master/test_convert_inference.py

@xuyuan xuyuan changed the title no perforamnce inprovement with GPU no perforamnce improvement with GPU Nov 21, 2018
@lext
Copy link
Collaborator

lext commented Feb 1, 2019

Hi,

thanks!

I need to check this issue in more detail, but I will be back to it when I have more time. I was testing on CPU and I was getting performance gain and reduced memory usage.

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

No branches or pull requests

2 participants