frozen_batchnorm
frozen_batchnorm
¶
Frozen BatchNorm2d implementation taken from DETR.
FrozenBatchNorm2d
¶
Bases: Module
BatchNorm2d where the batch statistics and the affine parameters are fixed.
Initialize with dimension equal to the channel dimension.
Source code in src/versatil/models/layers/frozen_batchnorm.py
forward
¶
Forward pass for input tensor with shape (B, C, H, W).