can someone actually run this code?
iriscxy opened this issue · 0 comments
iriscxy commented
I'm using win10 system and python3.x tf0.12
It turns out in function beam_attention_decoder
the sentence
outputs.append(tf.argmax(nn_ops.xw_plus_b( output, output_projection[0], output_projection[1]), dimension=1))
should be outputs.append(output)
or the shape doesn't match in tf.nn.sampled_softmax_loss
.
Even when I solved this problem, the code still meets bugs in model.step
. I found that prev
in beam_attention_decoder
was (batch_size, input_size), which was (32,32). But after the loop_function
, it turned into shape (beam_size,input_size)(10,32). Thus the running failed.
Is this code really available?