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
{NameError}name 'uses_learning_phase' is not defined #13
Comments
Hi. Can you please provide the code so that I can replicate the error you're receiving along with the log. I haven't used Mish as of now on a LSTM so I'll have to check to validate the same. Meanwhile, I'm referring to these issue forums here: |
@valendin can you try using Mish from the Tensorflow Addons repository. Implementation is given here - https://github.com/tensorflow/addons/tree/master/tensorflow_addons/activations |
@digantamisra98 will do, have just moved to TF 2.0 so will have to retest |
There is no
How can I import it to TF 2.0? |
@qo4on have you updated TFA? Because Mish is here - https://github.com/tensorflow/addons/blob/master/tensorflow_addons/activations/mish.py |
I installed latest tfa in Colab:
Maybe I should have used nightly build |
@qo4on I just noticed that they're yet to put out their next release which is why Mish isn't a part of the package even though it's up on the source. You can directly install from the source (Instruction on their Readme) or else wait for the release for this month. I'll put forth an inquiry on when the next release is coming. Thanks |
@qo4on here's the update - tensorflow/addons#683 (comment) |
Eventually I found the way to use Mish from the Tensorflow Addons in Colab: !pip install tf-nightly==2.1.0.dev20191029
!pip install tfa-nightly
import tensorflow_addons as tfa
dir(tfa.activations)
['__builtins__',
'__cached__',
'__doc__',
'__file__',
'__loader__',
'__name__',
'__package__',
'__path__',
'__spec__',
'absolute_import',
'division',
'gelu',
'hardshrink',
'lisht',
'mish',
'print_function',
'rrelu',
'softshrink',
'sparsemax',
'tanhshrink'] |
When using in an RNN, I get
{NameError}name 'uses_learning_phase' is not defined
when applying a Dense layer on the output of an LSTM.Tensorflow 1.14
The text was updated successfully, but these errors were encountered: