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

Update hook-tensorflow.py #564

Merged
merged 3 commits into from
Mar 31, 2023
Merged

Update hook-tensorflow.py #564

merged 3 commits into from
Mar 31, 2023

Commits on Mar 31, 2023

  1. Update hook-tensorflow.py

    In the recent TF 2.12 release, there is a new file `libtensorflow_cc.so.2` which now appears twice in the final output: once correctly in the root directory (as 'binary') and once incorrectly in the `tensorflow` subdirectory (as 'data' file). This new file is where they moved the majority of the code, it's over 500 MB, so this duplication causes a lot of overhead.
    
    To reproduce the issue, install `tensorflow==2.12` or `tensorflow-cpu==2.12` and package a file with only `import tensorflow`.
    With these changes the file only appears once in the final output and the package still works as expected.
    
    I have tested this change on Linux only.
    Tombana committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    df56e4c View commit details
    Browse the repository at this point in the history
  2. Fix newline

    Tombana committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    5167dfd View commit details
    Browse the repository at this point in the history
  3. Add news entry

    Tombana committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    51dfe8e View commit details
    Browse the repository at this point in the history