Skip to content

Commit

Permalink
Update gpt2 README
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhitingHu committed Apr 13, 2019
1 parent 1819539 commit ecc371b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/gpt-2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ output, output_length = decoder(
output = decoder(
memory=source_hidden_states,
memory_sequence_length=src_len,
inputs=truth_target[:, :-1],
decoding_strategy='train_greedy')
inputs=embedder(truth_target[:, :-1]),
decoding_strategy='train_greedy') # teacher-forcing decoding

loss = tx.losses.sequence_sparse_softmax_cross_entropy(
lables=truth_target[:, 1:],
Expand Down

0 comments on commit ecc371b

Please sign in to comment.