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

How to reduce the size of tensorflow.dll #177

Open
wang002 opened this issue Apr 27, 2021 · 6 comments
Open

How to reduce the size of tensorflow.dll #177

wang002 opened this issue Apr 27, 2021 · 6 comments

Comments

@wang002
Copy link

wang002 commented Apr 27, 2021

I built a dll, it is very big, about 600M.I found that the dll you built is very small.

@fo40225
Copy link
Owner

fo40225 commented Apr 27, 2021

How did you build the dll?
Which dll are you comparing with?

@Fannhhyy
Copy link

https://github.com/sitting-duck/stuff/tree/master/ai/tensorflow/build_tensorflow_1.14_source_for_Windows

Follow this link to build c++ api , tensorflow_cc.dll .lib and include , but only for your own code.

file

This file I built is just for running the pb graph.

@fo40225
Copy link
Owner

fo40225 commented Apr 27, 2021

It seems that the file sizes are similar. Did I misunderstand something?

@Fannhhyy
Copy link

When unzip the file, tensorflow_cc.dll is about 600MB , I added sm61,sm75,sm86 . If don't add,the file is about 400MB .

@fo40225
Copy link
Owner

fo40225 commented Apr 30, 2021

If you unzip tensorflow-1.15.4+nv-cp38-cp38-win_amd64.whl, tensorflow_core\python\_pywrap_tensorflow_internal.pyd is 400 MB.

It is the same.

@Fannhhyy
Copy link

Fannhhyy commented Sep 1, 2021

We tested using tensorflow_cc dll, just inference model, here is the link if needed

https://github.com/Fannhhyy/tensorflow1.15-whl-and-cpp-api-for-win-and-rtx3090

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

3 participants