models.modules.Residual

Contents

models.modules.Residual#

class Residual(iterable=(), /)[source]#

Bases: list

Class inherited from list type without changes

Needed to mark a network in the configuration as residual.

Example#
Residual(
    [
        [*conv(out_channels, kernel)],
        [Conv(out_channels, 1)],
    ]
)

Methods