brails.processors.nfloors_detector.lib.efficientnet.utils_extra module

class brails.processors.nfloors_detector.lib.efficientnet.utils_extra.Conv2dStaticSamePadding(in_channels, out_channels, kernel_size, stride=1, bias=True, groups=1, dilation=1, **kwargs)

Bases: Module

created by Zylo117 The real keras/tensorflow conv2d with same padding

forward(x)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class brails.processors.nfloors_detector.lib.efficientnet.utils_extra.MaxPool2dStaticSamePadding(*args, **kwargs)

Bases: Module

created by Zylo117 The real keras/tensorflow MaxPool2d with same padding

forward(x)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.