Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # if we are to reduce the spatial size, apply a CONV layer to the shortcut
- if red:
- shortcut = Conv2D(K, (1, 1), strides=stride, use_bias=False,
- kernel_regularizer=l2(reg))(act1)
- # add together the shortcut and the final CONV
- x = add([conv3, shortcut])
- # return the addition as the output of the ResNet module
- return x
Add Comment
Please, Sign In to add comment