You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
~\AppData\Roaming\Python\Python38\site-packages\bidaf\models_init_.py in
----> 1 from .bidaf import BidirectionalAttentionFlow
~\AppData\Roaming\Python\Python38\site-packages\bidaf\models\bidaf.py in
1 from keras.layers import Input, TimeDistributed, LSTM, Bidirectional
2 from keras.models import Model, load_model
----> 3 from keras.optimizers import Adadelta
4 from keras.callbacks import CSVLogger, ModelCheckpoint
5 from ..layers import Highway, Similarity, C2QAttention, Q2CAttention, MergedContext, SpanBegin, SpanEnd, CombineOutputs
ImportError: cannot import name 'Adadelta' from 'keras.optimizers' (C:\Users\vishd\AppData\Roaming\Python\Python38\site-packages\keras\optimizers.py)
I have been trying to recreate your Keras-bidaf model in my python notebook and running this code in python from bidaf.models import BidirectionalAttentionFlow which keeps giving me the above error and saying Adadelta can't be imported from Keras. I have tried so many options to solve it but no luck.
I have tried the below solution as well. But it keeps throwing me the same error. I
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.optimizers import Adadelta
I am totally clueless about how to solve this issue. Any suggestions and solutions are highly appreciated.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi @ParikhKadam
ImportError Traceback (most recent call last)in
1 #from bidaf.models import BidirectionalAttentionFlow
2 #bidaf_model = BidirectionalAttentionFlow(400)
3 #keras_model = bidaf_model.model
~\AppData\Roaming\Python\Python38\site-packages\bidaf\models_init_.py in
----> 1 from .bidaf import BidirectionalAttentionFlow
~\AppData\Roaming\Python\Python38\site-packages\bidaf\models\bidaf.py in
1 from keras.layers import Input, TimeDistributed, LSTM, Bidirectional
2 from keras.models import Model, load_model
----> 3 from keras.optimizers import Adadelta
4 from keras.callbacks import CSVLogger, ModelCheckpoint
5 from ..layers import Highway, Similarity, C2QAttention, Q2CAttention, MergedContext, SpanBegin, SpanEnd, CombineOutputs
ImportError: cannot import name 'Adadelta' from 'keras.optimizers' (C:\Users\vishd\AppData\Roaming\Python\Python38\site-packages\keras\optimizers.py)
I have been trying to recreate your Keras-bidaf model in my python notebook and running this code in python from bidaf.models import BidirectionalAttentionFlow which keeps giving me the above error and saying Adadelta can't be imported from Keras. I have tried so many options to solve it but no luck.
I have tried the below solution as well. But it keeps throwing me the same error. I
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.optimizers import Adadelta
I am totally clueless about how to solve this issue. Any suggestions and solutions are highly appreciated.
The text was updated successfully, but these errors were encountered: