Merge pull request #46397 from ptran1203:master
PiperOrigin-RevId: 352041307 Change-Id: I325f8f72d828a3acd6372ffe53a8a2a3fe7940b8
This commit is contained in:
commit
3301bc5599
@ -405,12 +405,12 @@ def block3(x,
|
||||
depth_multiplier=c,
|
||||
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_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)
|
||||
x = layers.Reshape(x_shape + (filters,))(x)
|
||||
x = backend.reshape(x, backend.concatenate([x_shape, (filters,)]))
|
||||
x = layers.BatchNormalization(
|
||||
axis=bn_axis, epsilon=1.001e-5, name=name + '_2_bn')(x)
|
||||
x = layers.Activation('relu', name=name + '_2_relu')(x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user