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():
                     print("name:{}\tshape:{}\ttype:{}".format(var.name, var.shape, var.dtype))
                if step % 1000 == 0:
                    saver.save(sess, "./logdir/my-model", global_step = step)

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]))
                //    print("{}:{} target:{} txt:{}".format((step-1)*32+index, step, line[2], line[3]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: deepmipt/DeepPavlov
Commit Name: 349cfbdebfb05d2faf51ae7c82eca81c97ed5c49
Time: 2019-09-06
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/core/data/sqlite_database.py
Class Name: Sqlite3Database
Method Name: _update_one


Project Name: deepmipt/DeepPavlov
Commit Name: 349cfbdebfb05d2faf51ae7c82eca81c97ed5c49
Time: 2019-09-06
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/core/data/sqlite_database.py
Class Name: Sqlite3Database
Method Name: _get_record