-
Notifications
You must be signed in to change notification settings - Fork 4
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
Tensorflow dependency #27
Comments
What TF version is that? I'm pretty sure you can use a newer Numpy version with not totally outdated TF versions. |
The TensorFlow slow import time is reported here: tensorflow/tensorflow#37729 So this is known. I'm not sure if there are maybe potential workarounds. |
Do you know about some (well-used, well-known) alternative lib which provides what We could also create our own external library. Maybe just copy the TF |
Note that we probably will also have other |
Also, when we follow some of the suggestions here, we might also import stuff from |
No, unfortunately even the latest nightly builds depend on older numpy... But I guess it can be okay to still use a newer numpy version as long it is only the "nest" functions that are imported. I will test this.
I will check if this is possible, the linked thread about import speed was not helpful so far. |
I'm pretty sure TF will work anyway with a newer Numpy version. I don't really see why not. I have done that quite commonly. I'm also almost sure that G2P or whatever other library also probably works with Numpy 1.19 or so. It's maybe just not tested. |
This definitely did crash, otherwise I would not have noticed. |
Python exception, or segfault? In the latter case, I assume G2P compiles some native code, and must also be compiled with the right Numpy version, so you cannot use a different Numpy than the used during compilation. |
Segfault, but it does not matter here. I will just use the newest numpy version. I will never use the Tensorflow of that env for any other purpose than for loading For the startup time, I guess I will just live with it for now. Moving |
However, we have the TF dependency in several other places as well now. E.g. #47. It's not really easily possible to remove it. |
Please see rwth-i6/returnn#1314 for a more recent discussion with more alternatives. |
The code uses
from tensorflow.python.util import nest
. Is there a possibility to include this code standalone into the repository without linking on tensorflow? I think this is an extreme dependency, and causes the following two issues for me:nest
) does not have this dependency issue anymore (2.5 still has this).Nevertheless, the first issue is already big enough for me to search for a solution.
The text was updated successfully, but these errors were encountered: