-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
tflearn import issue #1172
Comments
Hi! Thanks for your question. tl;dr: everywhere you say "is_sequence" in your code, replace it with "is_sequence_or_composite".Your problem
Explanation of the ProblemIf this is indeed the problem, then I encountered the same issue several days ago and was able to resolve it. The reason you are experiencing the error is that, as the error message says, you SolutionIf you visit the provided link above, there is a new function which will serve your purpose well named "is_sequence_or_composite()", which according to the source code does the same exact thing as "is_nested_or_composite()" (use whichever one floats your boat!). Thank you so much again for asking. I hope this works for you, and feel free to ask for any help you may need along the way! -Rela |
@rela-v It happens if one doesn't use is_sequence explictly, simple |
And as expected, is_sequence is imported in tflearn/layers/recurrent.py file. |
Created a PR |
In the meantime you can |
Hello,
I am trying to run a code using tflearn. But even if i just try to import tflearn then it gives the below error
WARNING:tensorflow:From /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/compat/v2_compat.py:107: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
mportError: cannot import name 'is_sequence' from 'tensorflow.python.util.nest' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/util/nest.py)
What can be done to resolve this?
The text was updated successfully, but these errors were encountered: