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
When setting the use_beamsearch_decode=True, it shows the ValueError: t must have statically known rank.
File "seq2seq_sleep_sleep-EDF.py", line 755, in main
run_program(hparams,FLAGS)
File "seq2seq_sleep_sleep-EDF.py", line 607, in run_program
logits, pred_outputs, loss, optimizer,dec_states = build_whole_model(hparams,char2numY,inputs,targets, dec_inputs, keep_prob_)
File "seq2seq_sleep_sleep-EDF.py", line 385, in build_whole_model
logits, pred_outputs,dec_states = build_network(hparams,char2numY,inputs, dec_inputs, keep_prob_)
File "seq2seq_sleep_sleep-EDF.py", line 295, in build_network
encoder_state = tf.contrib.seq2seq.tile_batch(encoder_state, multiplier=hparams.beam_width)
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py", line 126, in tile_batch
return nest.map_structure(lambda t_: tile_batch(t, multiplier), t)
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 515, in map_structure
structure[0], [func(*x) for x in entries],
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 515, in
structure[0], [func(*x) for x in entries],
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py", line 126, in
return nest.map_structure(lambda t_: tile_batch(t, multiplier), t)
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py", line 85, in _tile_batch
raise ValueError("t must have statically known rank")
ValueError: t must have statically known rank
The text was updated successfully, but these errors were encountered:
When setting the use_beamsearch_decode=True, it shows the ValueError: t must have statically known rank.
File "seq2seq_sleep_sleep-EDF.py", line 755, in main
run_program(hparams,FLAGS)
File "seq2seq_sleep_sleep-EDF.py", line 607, in run_program
logits, pred_outputs, loss, optimizer,dec_states = build_whole_model(hparams,char2numY,inputs,targets, dec_inputs, keep_prob_)
File "seq2seq_sleep_sleep-EDF.py", line 385, in build_whole_model
logits, pred_outputs,dec_states = build_network(hparams,char2numY,inputs, dec_inputs, keep_prob_)
File "seq2seq_sleep_sleep-EDF.py", line 295, in build_network
encoder_state = tf.contrib.seq2seq.tile_batch(encoder_state, multiplier=hparams.beam_width)
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py", line 126, in tile_batch
return nest.map_structure(lambda t_: tile_batch(t, multiplier), t)
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 515, in map_structure
structure[0], [func(*x) for x in entries],
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 515, in
structure[0], [func(*x) for x in entries],
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py", line 126, in
return nest.map_structure(lambda t_: tile_batch(t, multiplier), t)
File "/home/Student/s4518991/.local/lib/python3.6/site-packages/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py", line 85, in _tile_batch
raise ValueError("t must have statically known rank")
ValueError: t must have statically known rank
The text was updated successfully, but these errors were encountered: