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

Before Change


                        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():
                     print("name:{}\tshape:{}\ttype:{}".format(var.name, var.shape, var.dtype))
                if step % 1000 == 0:

After Change


                        for line in source.tolist()]
                targettxt = [ " ".join([text_database.target_vocab._id_to_token_map_py[i] for i in line]) \
                        for line in target.tolist()]
                predicttxt = [ " ".join([text_database.target_vocab._id_to_token_map_py[i] for i in line])\
                        for line in predict.tolist()]
                writer.add_summary(mgd, global_step=step)
                //for index, line in enumerate(zip(source, sourcetxt, target, targettxt, predict, predicttxt)):
                //    print("{}:{} source:{} txt:{}".format((step-1)*32+index, step, line[0], line[1]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: SPFlow/SPFlow
Commit Name: 558f7ff3f0d5ffcba377647bdfba7dfdc0793abd
Time: 2018-06-20
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/tests/test_cpp.py
Class Name: TestCPP
Method Name: test_bcpp


Project Name: yzhao062/pyod
Commit Name: d4a6437038ab505c137a1c1e65d61025fae55639
Time: 2018-11-24
Author: zain.nasrullah@ca.pwc.com
File Name: examples/temp_do_not_use_lscp.py
Class Name:
Method Name:


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 87fc2b26df5eef261a3423b15b10ef0fd69c6bf4
Time: 2017-11-08
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx_adv.py
Class Name:
Method Name: