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
I used use_beamsearch_decode=True.
ValueError: t must have statically known rank
Use tf.where in 2.0, which has the same broadcast rule as np.where
Traceback (most recent call last):
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 772, in
tf.app.run()
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 40, in run run(main=main, argv=argv, flags_parser=parse_flags_tolerate_undef)
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/absl/app.py", line 299, in run run_main(main, args)
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/absl/app.py", line 250, in run_main
sys.exit(main(argv))
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 770, in main
run_program(hparams,FLAGS)
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 622, in run_program
logits, pred_outputs, loss, optimizer,dec_states = build_whole_model(hparams,char2numY,inputs,targets, dec_inputs, keep_prob)
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 390, in build_whole_model
logits, pred_outputs,dec_states = build_network(hparams,char2numY,inputs, dec_inputs, keep_prob)
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 294, in build_network
encoder_state = tf.contrib.seq2seq.tile_batch(encoder_state, multiplier=hparams.beam_width)
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/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/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/tensorflow/python/util/nest.py", line 515, in map_structure
structure[0], [func(*x) for x in entries],
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/tensorflow/python/util/nest.py", line 515, in
structure[0], [func(*x) for x in entries],
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/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/ubuntu/anaconda3/envs/tf1/lib/python3.7/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:
I used use_beamsearch_decode=True.
ValueError: t must have statically known rank
Use tf.where in 2.0, which has the same broadcast rule as np.where
Traceback (most recent call last):
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 772, in
tf.app.run()
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 40, in run
run(main=main, argv=argv, flags_parser=parse_flags_tolerate_undef)
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/absl/app.py", line 299, in run
run_main(main, args)
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/absl/app.py", line 250, in run_main
sys.exit(main(argv))
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 770, in main
run_program(hparams,FLAGS)
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 622, in run_program
logits, pred_outputs, loss, optimizer,dec_states = build_whole_model(hparams,char2numY,inputs,targets, dec_inputs, keep_prob)
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 390, in build_whole_model
logits, pred_outputs,dec_states = build_network(hparams,char2numY,inputs, dec_inputs, keep_prob)
File "/home/ubuntu/Code/SleepEEGNet/seq2seq_sleep_sleep-EDF-test1.py", line 294, in build_network
encoder_state = tf.contrib.seq2seq.tile_batch(encoder_state, multiplier=hparams.beam_width)
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/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/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/tensorflow/python/util/nest.py", line 515, in map_structure
structure[0], [func(*x) for x in entries],
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/site-packages/tensorflow/python/util/nest.py", line 515, in
structure[0], [func(*x) for x in entries],
File "/home/ubuntu/anaconda3/envs/tf1/lib/python3.7/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/ubuntu/anaconda3/envs/tf1/lib/python3.7/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: