Identity block with no shortcut convolution
(input_tensor)
| 177 | |
| 178 | |
| 179 | def identity_block_bn(input_tensor): |
| 180 | """ |
| 181 | Identity block with no shortcut convolution |
| 182 | """ |
| 183 | y = tf.keras.layers.Conv2D(filters=12, kernel_size=(3, 3), padding="same")( |
| 184 | input_tensor |
| 185 | ) |
| 186 | y = relu_bn(y) |
| 187 | y = tf.keras.layers.Conv2D(filters=24, kernel_size=(3, 3), padding="same")(y) |
| 188 | y = bn(y) |
| 189 | out = tf.keras.layers.Add()([y, input_tensor]) |
| 190 | out = relu(out) |
| 191 | return out |
| 192 | |
| 193 | |
| 194 | def identity_block_short_conv_bn(input_tensor): |
no test coverage detected