LS Block for LSNet architecture.
This block consists of LS Convolution followed by a residual connection, forming a basic building block for the LSNet architecture.
LS Block as described in the LSNet paper.
This block consists of LS Convolution followed by a residual connection.
| lsnet.LSBlock.forward |
( |
|
self, |
|
|
|
x |
|
) |
| |
Forward pass through the LS Block.
- Parameters
-
| x | Input tensor of shape [batch_size, in_channels, height, width] |
- Returns
- Output tensor of shape [batch_size, out_channels, height, width]
Forward pass through the LS Block.
Args_:
x: Input tensor of shape [batch_size, in_channels, height, width]
Returns:
Output tensor of shape [batch_size, out_channels, height, width]