Belle II Software development
|
Class for the residual block layer. More...
Public Member Functions | |
def | __init__ (self, ninput, noutput, upsample=True) |
Constructor to create a new residual block layer. | |
def | forward (self, x) |
Function to perform a forward pass. | |
Public Attributes | |
upsample | |
Whether to double the height and width of input. | |
conv | |
Convolutional layer in the shortcut branch. | |
norm1 | |
First batch normalization layer in the residual branch. | |
conv1 | |
First convolutional layer in the residual branch. | |
norm2 | |
Second batch normalization layer in the residual branch. | |
conv2 | |
Second convolutional layer in the residual branch. | |
def __init__ | ( | self, | |
ninput, | |||
noutput, | |||
upsample = True |
|||
) |
Constructor to create a new residual block layer.
Definition at line 24 of file resnet.py.
def forward | ( | self, | |
x | |||
) |
Function to perform a forward pass.
Compute the layer output for a given input.
Definition at line 39 of file resnet.py.
norm1 |
norm2 |