main.m803 chars19 lines
This function creates a ResNet block with two convolutional layers and batch normalization layers. The skip connection is added if the stride is greater than 1 or the number of filters changes. Adjust the parameters numFilters
, stride
, and blockID
as needed for each block in your network.
gistlibby LogSnag