d20fc092d6454011da6c306975e740a5875f97e7,eval.py,,,#,22

Before Change


    opt.batch_size = infos["opt"].batch_size
if len(opt.id) == 0:
    opt.id = infos["opt"].id
ignore = ["id", "batch_size", "beam_size", "start_from", "language_eval", "block_trigrams"]

for k in vars(infos["opt"]).keys():
    if k not in ignore:
        if k in vars(opt):

After Change


ignore = ["start_from"]

for k in vars(infos["opt"]).keys():
    if k in replace:
        setattr(opt, k, getattr(opt, k) or getattr(infos["opt"], k))
    elif k not in ignore:
        if not k in vars(opt):
            vars(opt).update({k: vars(infos["opt"])[k]}) // copy over options from model

vocab = infos["vocab"] // ix -> word mapping

// Setup the model
model = models.setup(opt)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ruotianluo/self-critical.pytorch
Commit Name: d20fc092d6454011da6c306975e740a5875f97e7
Time: 2019-04-18
Author: rluo@ttic.edu
File Name: eval.py
Class Name:
Method Name:


Project Name: ruotianluo/self-critical.pytorch
Commit Name: d20fc092d6454011da6c306975e740a5875f97e7
Time: 2019-04-18
Author: rluo@ttic.edu
File Name: eval.py
Class Name:
Method Name:


Project Name: kengz/SLM-Lab
Commit Name: 2051aa89ec691d1c056e3e1f1187c489597c2ead
Time: 2018-08-17
Author: kengzwl@gmail.com
File Name: slm_lab/agent/memory/replay.py
Class Name: Replay
Method Name: reset