Identity block with no shortcut convolution
(input_tensor)
| 58 | ###### Tiny, ResNet like network #################### |
| 59 | ##################################################### |
| 60 | def identity_block_plain(input_tensor): |
| 61 | """ |
| 62 | Identity block with no shortcut convolution |
| 63 | """ |
| 64 | y = tf.keras.layers.Conv2D(filters=12, kernel_size=(3, 3), padding="same")( |
| 65 | input_tensor |
| 66 | ) |
| 67 | y = tf.keras.layers.ReLU()(y) |
| 68 | y = tf.keras.layers.Conv2D(filters=24, kernel_size=(3, 3), padding="same")(y) |
| 69 | out = tf.keras.layers.Add()([y, input_tensor]) |
| 70 | out = tf.keras.layers.ReLU()(out) |
| 71 | return out |
| 72 | |
| 73 | |
| 74 | def identity_block_short_conv_plain(input_tensor): |
no outgoing calls
no test coverage detected