71106ac70146d89b3e3e0774a5c27a98212e1405,basenji/seqnn.py,SeqNN,build_model,#SeqNN#Any#,82
Before Change
target_diff = self.target_length - current_length
target_diff2 = target_diff // 2
if target_diff2 < 0:
print("Model over-pools to %d for target_length %d." % \
(current_length, self.target_length), file=sys.stderr)
exit(1)
elif target_diff2 > 0:
current = layers.SliceCenter(
left=target_diff2,
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 = []
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
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: elbayadm/attn2d
Commit Name: 22e535e23b4c2e95e7e72198ae98c7e0d4ac8c18
Time: 2018-09-30
Author: alexei.b@gmail.com
File Name: eval_lm.py
Class Name:
Method Name: main
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