09b8381f7dd52c67fdd629825ff319271167d8c5,basenji/seqnn.py,SeqNN,build_model,#SeqNN#Any#,82
Before Change
current_length = current.shape[1]
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,
right=current_length-target_diff2)(current)
self.trunk_output = current
//////////////////////////////////////////////////////////////////////////////////////////////////////
// heads
After Change
trunk_output = current
self.model_trunk = tf.keras.Model(inputs=sequence, outputs=trunk_output)
//////////////////////////////////////////////////////////////////////////////////////////////////////
// heads
//////////////////////////////////////////////////////////////////////////////////////////////////////
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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
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: hunkim/PyTorchZeroToAll
Commit Name: 55b880469ced115de9949d5d25ff835dabbb2caa
Time: 2017-11-08
Author: hunkim@gmail.com
File Name: 12_2_hello_rnn.py
Class Name:
Method Name: