c8523b2dc735a1b82ca6170e6ca349defe9f77fc,examples/transformer.py,,,#,22
Before Change
src, tgt = sess.run([src_text, tgt_text])
print("src:{}".format(src))
print("tgt:{}".format(tgt))
encoder_output = encoder(src_text["text_ids"][:, :-1],
sequence_length=src_text["length"]-1)
// Decode
outputs, final_state, sequence_lengths = decoder(
initial_state=connector(text_database._hparams.batch_size))
After Change
print("src_text:{}".format(src_text))
encoder_output = encoder(src_text,
sequence_length=text_data_batch["source_length"])
// Decode
print("encoder_output:{}".format(encoder_output.shape))
logits, preds = decoder(decoder_inputs, encoder_output)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: asyml/texar
Commit Name: c8523b2dc735a1b82ca6170e6ca349defe9f77fc
Time: 2017-11-17
Author: shore@pku.edu.cn
File Name: examples/transformer.py
Class Name:
Method Name:
Project Name: facebookresearch/pythia
Commit Name: 2f337387d6759627bae60284e7fa612268580724
Time: 2020-09-15
Author: vedanujg@gmail.com
File Name: mmf/models/mmf_transformer.py
Class Name: MMFTransformer
Method Name: forward
Project Name: analysiscenter/batchflow
Commit Name: 8f0e77c8bbc0cd0e7d3371016d3dcfcfc136bba9
Time: 2019-10-16
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/tf/refinenet.py
Class Name: RefineNet
Method Name: body