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

Error en Modelo Ejercicios: Clasificación de texto usando LSTMs con TensorFlow 2.0 #6

Open
anilupss opened this issue Aug 10, 2021 · 0 comments

Comments

@anilupss
Copy link

Me he suscrito al Workshop y me ha parecido genial. He intentado encontrar el código Clasificación de texto usando LSTMs con TensorFlow 2.0 explicado en la sesión 2, pero no lo encuentro. Seguí el código según lo explica @mariagrandury en el video, pero me ha dado un error al momento de crear la red neuronal y de aquí en adelante nada funciona.

model=tf.keras.Sequential([tf.keras.layers.Embedding(vocab_size,embedding_dim),
tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(embedding_dim)),
tf.keras.layers.Dense(embedding_dim,activation='relu'),
tf.keras.layers.Dense(6,activation='softmax')])

Error reportado...
NotImplementedError: Cannot convert a symbolic Tensor (bidirectional/forward_lstm/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported

Espero su ayuda urgente.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant