97031ed8f6afaf26a21dd98bb0bfdb4cacc65ca2,keras/layers/wrappers.py,Bidirectional,compute_output_shape,#Bidirectional#Any#,277
Before Change
self.backward_layer.set_weights(weights[nw // 2:])
def compute_output_shape(self, input_shape):
if self.merge_mode in ["sum", "ave", "mul"]:
return self.forward_layer.compute_output_shape(input_shape)
elif self.merge_mode == "concat":
shape = list(self.forward_layer.compute_output_shape(input_shape))
After Change
if self.merge_mode == "concat":
output_shape = list(output_shape)
output_shape[-1] *= 2
output_shape = tuple(output_shape)
elif self.merge_mode is None:
output_shape = [output_shape] * 2
if self.return_state:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: keras-team/keras
Commit Name: 97031ed8f6afaf26a21dd98bb0bfdb4cacc65ca2
Time: 2018-01-11
Author: myutwo150@users.noreply.github.com
File Name: keras/layers/wrappers.py
Class Name: Bidirectional
Method Name: compute_output_shape
Project Name: NervanaSystems/nlp-architect
Commit Name: c9e73e23d952569574d23aafad6479caa5828b49
Time: 2018-05-14
Author: amit.yaccobi@intel.com
File Name: examples/np_semantic_segmentation/feature_extraction.py
Class Name: PalmettoClass
Method Name: get_pmi_score
Project Name: keras-team/keras
Commit Name: dc83851aca230648c4f75ac1a0d4b9971b2d6aa0
Time: 2019-03-16
Author: me@taehoonlee.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: tile
Project Name: keras-team/keras
Commit Name: 97bff7df815de472039d366728df8f610528d631
Time: 2018-11-03
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/numpy_backend.py
Class Name:
Method Name: reverse