71106ac70146d89b3e3e0774a5c27a98212e1405,basenji/seqnn.py,SeqNN,build_model,#SeqNN#Any#,82

Before Change


    //////////////////////////////////////////////////////////////////////////////////////////////////////

    if not isinstance(self.head, list):
        self.head = [self.head]

    self.head_output = []

    for hi, head in enumerate(self.head):

After Change


    // heads
    //////////////////////////////////////////////////////////////////////////////////////////////////////

    head_keys = natsorted([v for v in vars(self) if v.startswith("head")])
    self.heads = [getattr(self, hk) for hk in head_keys]

    self.head_output = []
    for hi, head in enumerate(self.heads):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: calico/basenji
Commit Name: 71106ac70146d89b3e3e0774a5c27a98212e1405
Time: 2019-07-11
Author: geoff.fudenberg@gmail.com
File Name: basenji/seqnn.py
Class Name: SeqNN
Method Name: build_model


Project Name: hanxiao/bert-as-service
Commit Name: 6ac655533f3faede22d4e44d41a6b6f4b1891ff4
Time: 2019-01-18
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name:


Project Name: calico/basenji
Commit Name: 09b8381f7dd52c67fdd629825ff319271167d8c5
Time: 2019-07-11
Author: drk@calicolabs.com
File Name: basenji/seqnn.py
Class Name: SeqNN
Method Name: build_model