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

Add warning when using tensorflow rather than tensorflow-cpu #1343

Open
edmorley opened this issue Aug 3, 2022 · 0 comments
Open

Add warning when using tensorflow rather than tensorflow-cpu #1343

edmorley opened this issue Aug 3, 2022 · 0 comments

Comments

@edmorley
Copy link
Member

edmorley commented Aug 3, 2022

The main tensorflow package wheel is ~500MB (!) which means anyone using it is likely to go over the Heroku slug limit (that limit is compressed slug size, however there will be other packages + the Python runtime + many of the compiled files won't be that compressible).

eg as seen in:
https://heroku.support/1140002

It turns out tensorflow has a CPU-only package available thats half the size. Given that Heroku does not offer GPUs, it seems worthwhile to warn if the larger CPU+GPU package is being used instead of the CPU one.

See:
https://github.com/tensorflow/tensorflow#install
https://pypi.org/project/tensorflow/#files
https://pypi.org/project/tensorflow-cpu/#files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant