Get error when initializing decoder initial state
In seq2seq_model.py file, I use bi-directional GRU for encoder but I got an error. More specifically,in line 391, i got an error as follows
"TypeError: Tensor objects are not iterable when eager execution is not enabled. To iterate over this tensor use tf.map_fn."
I use tensorflow 1.7 How can I solve this problem?
In addition, why do have to initialize last decoder cell to zero state not encoder last state as preceding layer?
Thanks in advance
I found out a solution Instead of using list comprehension, use for loop to append every encoder state to new list and make it tuple. Here is my suggestion if you want to use bi-directional rnn for encoder part
init_state = []
for i in range(self.num_layers):
init_state.append(encoder_last_states[i])
init_state[-1] = decoder_cell_list[-1].zero_state(batch_size,
dtype=tf.float32)
decoder_init_state = tuple(init_state)
unsupported operand type(s) for -: 'float' and 'Flag'
hey @seanie12 can you please help me with this issue?
this issue is coming when i am running the train.py file..

@jigyasa06 sorry i don't know how to solve .. maybe @JayParks might help
hey @JayParks can you please see to this problem?