eb89648ac93c8b8503a1c1059707caad8ec71f78,keras/applications/resnet.py,,block3,#Any#Any#Any#Any#Any#Any#Any#,360

Before Change


      use_bias=False,
      name=name + "_2_conv")(x)
  x_shape = backend.int_shape(x)[1:-1]
  x = layers.Reshape(x_shape + (groups, c, c))(x)
  x = layers.Lambda(
      lambda x: sum(x[:, :, :, :, i] for i in range(c)),
      name=name + "_2_reduce")(x)
  x = layers.Reshape(x_shape + (filters,))(x)

After Change


      use_bias=False,
      name=name + "_2_conv")(x)
  x_shape = backend.shape(x)[:-1]
  x = backend.reshape(x, backend.concatenate([x_shape, (groups, c, c)]))
  x = layers.Lambda(
      lambda x: sum(x[:, :, :, :, i] for i in range(c)),
      name=name + "_2_reduce")(x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: eb89648ac93c8b8503a1c1059707caad8ec71f78
Time: 2021-01-15
Author: scottzhu@google.com
File Name: keras/applications/resnet.py
Class Name:
Method Name: block3


Project Name: keras-team/keras-applications
Commit Name: e0a649263bdc4b9803c4103f288a0675ebbecd5d
Time: 2019-10-13
Author: me@taehoonlee.com
File Name: keras_applications/resnet_common.py
Class Name:
Method Name: block3


Project Name: keras-team/keras
Commit Name: bf4dab3501c62836f94ea17d2f0e198348f5293d
Time: 2016-03-31
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_core.py
Class Name:
Method Name: test_reshape