002a9d5d2b2c26fff63293e3007ede9ab7dee616,keras/layers/core.py,Merge,output_shape,#Merge#,333
Before Change
for i in self.dot_axes[0]:
shape1.pop(i)
for i in self.dot_axes[1]:
shape2.pop(i)
shape = shape1 + shape2[1:]
if len(shape) == 1:
shape.append(1)
return tuple(shape)
After Change
elif self.mode == "dot":
shape1 = list(input_shapes[0])
shape2 = list(input_shapes[1])
dot_axes = []
for axes in self.dot_axes:
dot_axes.append([index-1 for index in axes])
tensordot_output = np.tensordot(np.zeros(tuple(shape1[1:])),
np.zeros(tuple(shape2[1:])),
axes=dot_axes)
if len(tensordot_output.shape) == 0:
shape = (1,)
else:
shape = tensordot_output.shape
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: keras-team/keras
Commit Name: 002a9d5d2b2c26fff63293e3007ede9ab7dee616
Time: 2015-11-02
Author: makoto.matsuyama@gmx.com
File Name: keras/layers/core.py
Class Name: Merge
Method Name: output_shape
Project Name: dmlc/gluon-cv
Commit Name: cd7fc53a118063d64dfb1b659cfb6fe4bfe9feda
Time: 2019-08-23
Author: 33575288+douglas125@users.noreply.github.com
File Name: gluoncv/model_zoo/yolo/yolo3.py
Class Name: YOLOV3
Method Name: reset_class
Project Name: dmlc/gluon-cv
Commit Name: cd7fc53a118063d64dfb1b659cfb6fe4bfe9feda
Time: 2019-08-23
Author: 33575288+douglas125@users.noreply.github.com
File Name: gluoncv/model_zoo/ssd/ssd.py
Class Name: SSD
Method Name: reset_class
Project Name: keras-team/keras
Commit Name: 002a9d5d2b2c26fff63293e3007ede9ab7dee616
Time: 2015-11-02
Author: makoto.matsuyama@gmx.com
File Name: keras/layers/core.py
Class Name: Merge
Method Name: output_shape