42efaa53edce9b84a98fef1fce24502e6d2ba941,examples/transformer.py,,,#,11

Before Change


                targettxt = [ " ".join([text_database.target_vocab._id_to_token_map_py[i] for i in line]) \
                        for line in target.tolist()]
                writer.add_summary(mgd, global_step=step)
                for index, line in enumerate(zip(source, sourcetxt, target, targettxt)):
                    print("{}:{} source:{} txt:{}".format((step-1)*32+index, step, line[0], line[1]))
                    print("{}:{} target:{} txt:{}".format((step-1)*32+index, step, line[2], line[3]))
                for var in tf.trainable_variables():

After Change


                //    print("{}:{} source:{} txt:{}".format((step-1)*32+index, step, line[0], line[1]))
                //    print("{}:{} target:{} txt:{}".format((step-1)*32+index, step, line[2], line[3]))
                //    print("{}:{} predict:{} txt:{}".format((step-1)*32+index, step, line[4], line[5]))
                print("var cnt:{}".format(len(tf.trainable_variables())))
                for var in tf.trainable_variables():
                     print("name:{}\tshape:{}\ttype:{}".format(var.name, var.shape, var.dtype))
                exit()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: asyml/texar
Commit Name: 42efaa53edce9b84a98fef1fce24502e6d2ba941
Time: 2017-12-08
Author: shore@pku.edu.cn
File Name: examples/transformer.py
Class Name:
Method Name:


Project Name: chainer/chainercv
Commit Name: b70fc0ed42e5d2aadb87b68f474a7011f458000f
Time: 2017-06-02
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/extensions/detection/detection_voc_evaluator.py
Class Name: DetectionVOCEvaluator
Method Name: evaluate


Project Name: dmlc/gluon-nlp
Commit Name: 5ea0c27f524a3e684d9a2e6f012e30e6da2de8aa
Time: 2019-06-18
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/finetune_classifier.py
Class Name:
Method Name: test