bitorch.models.resnet_e.BasicBlock¶
- class bitorch.models.resnet_e.BasicBlock(in_channels: int, out_channels: int, stride: int)[source]¶
BasicBlock from “Back to Simplicity: How to Train Accurate BNNs from Scratch?” paper. This is used for ResNetE layers.
Methods
builds body and downsampling layers
forwards the input tensor x through the building block.
Attributes