basecls.layers.modules#
- basecls.layers.modules.conv2d(w_in, w_out, k, *, stride=1, dilation=1, groups=1, bias=False)[源代码]#
Helper for building a conv2d layer.
It will calculate padding automatically.
- basecls.layers.modules.gap2d(shape=1)[源代码]#
Helper for building a gap2d layer.
- 参数
shape – output shape. Default:
1
- 返回类型
- 返回
A gap2d module.