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

TypeError: Expected Operation, Variable, or Tensor, got 0 #57

Open
bewithme opened this issue Jun 1, 2021 · 0 comments
Open

TypeError: Expected Operation, Variable, or Tensor, got 0 #57

bewithme opened this issue Jun 1, 2021 · 0 comments

Comments

@bewithme
Copy link

bewithme commented Jun 1, 2021

Traceback (most recent call last):
File "/Users/wenfengxu/idea-workspace/CRNN-Keras/training.py", line 11, in
model = get_Model(training=True)
File "/Users/wenfengxu/idea-workspace/CRNN-Keras/Model.py", line 62, in get_Model
lstm_1 = LSTM(256, return_sequences=True, kernel_initializer='he_normal', name='lstm1')(inner) # (None, 32, 512)
File "/Users/wenfengxu/opt/anaconda3/envs/CRNN-Keras/lib/python3.5/site-packages/keras/layers/recurrent.py", line 536, in call
return super(RNN, self).call(inputs, **kwargs)
File "/Users/wenfengxu/opt/anaconda3/envs/CRNN-Keras/lib/python3.5/site-packages/keras/engine/base_layer.py", line 489, in call
output = self.call(inputs, **kwargs)
File "/Users/wenfengxu/opt/anaconda3/envs/CRNN-Keras/lib/python3.5/site-packages/keras/layers/recurrent.py", line 2242, in call
initial_state=initial_state)
File "/Users/wenfengxu/opt/anaconda3/envs/CRNN-Keras/lib/python3.5/site-packages/keras/layers/recurrent.py", line 677, in call
input_length=timesteps)
File "/Users/wenfengxu/opt/anaconda3/envs/CRNN-Keras/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 3105, in rnn
targets=[last_output])
File "/Users/wenfengxu/opt/anaconda3/envs/CRNN-Keras/lib/python3.5/site-packages/tensorflow_core/python/keras/utils/tf_utils.py", line 134, in get_reachable_from_inputs
raise TypeError('Expected Operation, Variable, or Tensor, got ' + str(x))
TypeError: Expected Operation, Variable, or Tensor, got 0

Process finished with exit code 1

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