57b67d799187c14deae35a7d7750a7f1d8d81b44,models/AttEnsemble.py,AttEnsemble,beam_search,#AttEnsemble#Any#Any#,96

Before Change


        // END INIT

        // Chunk elements in the args
        args = [[_.chunk(group_size) for _ in args_] for args_ in args] // arg_name, model_name, group_name
        args = [[[args[j][i][k] for i in range(len(self.models))] for j in range(len(args))] for k in range(group_size)] // group_name, arg_name, model_name

        for t in range(self.seq_length + group_size - 1):

After Change


        // END INIT

        // Chunk elements in the args
        args = [[_.chunk(group_size) if _ is not None else [None]*group_size for _ in args_] for args_ in args] // arg_name, model_name, group_name
        args = [[[args[j][i][k] for i in range(len(self.models))] for j in range(len(args))] for k in range(group_size)] // group_name, arg_name, model_name

        for t in range(self.seq_length + group_size - 1):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: ruotianluo/self-critical.pytorch
Commit Name: 57b67d799187c14deae35a7d7750a7f1d8d81b44
Time: 2018-05-31
Author: rluo@ttic.edu
File Name: models/AttEnsemble.py
Class Name: AttEnsemble
Method Name: beam_search


Project Name: ruotianluo/ImageCaptioning.pytorch
Commit Name: 57b67d799187c14deae35a7d7750a7f1d8d81b44
Time: 2018-05-31
Author: rluo@ttic.edu
File Name: models/AttEnsemble.py
Class Name: AttEnsemble
Method Name: beam_search


Project Name: ruotianluo/ImageCaptioning.pytorch
Commit Name: 57b67d799187c14deae35a7d7750a7f1d8d81b44
Time: 2018-05-31
Author: rluo@ttic.edu
File Name: models/CaptionModel.py
Class Name: CaptionModel
Method Name: beam_search