tiatoolbox . models . architecture . hovernet . TFSamepaddingLayer
tiatoolbox
models
architecture
hovernet
TFSamepaddingLayer
To align with tensorflow same padding.
Putting this before any conv layer that needs padding. Here, we assume kernel has same height and width for simplicity.
Methods
forward
Logic for using layers defined in init.
Attributes
ksize (int) –
stride (int) –
x (torch.Tensor) –