CIFAR RESNET#

Reference: https://github.com/khurramjaved96/incremental-learning/blob/autoencoders/model/resnet32.py

Classes#

class models.slca_utils.convs.cifar_resnet.CifarResNet(block, depth, channels=3)[source]#

Bases: Module

ResNet optimized for the Cifar Dataset, as specified in https://arxiv.org/abs/1512.03385.pdf

forward(x)[source]#
property last_conv#
class models.slca_utils.convs.cifar_resnet.DownsampleA(nIn, nOut, stride)[source]#

Bases: Module

forward(x)[source]#
class models.slca_utils.convs.cifar_resnet.DownsampleB(nIn, nOut, stride)[source]#

Bases: Module

forward(x)[source]#
class models.slca_utils.convs.cifar_resnet.DownsampleC(nIn, nOut, stride)[source]#

Bases: Module

forward(x)[source]#
class models.slca_utils.convs.cifar_resnet.DownsampleD(nIn, nOut, stride)[source]#

Bases: Module

forward(x)[source]#
class models.slca_utils.convs.cifar_resnet.ResNetBasicblock(inplanes, planes, stride=1, downsample=None)[source]#

Bases: Module

expansion = 1#
forward(x)[source]#

Functions#

models.slca_utils.convs.cifar_resnet.resnet110()[source]#

Constructs a ResNet-110 model for CIFAR-10.

models.slca_utils.convs.cifar_resnet.resnet20()[source]#

Constructs a ResNet-20 model for CIFAR-10.

models.slca_utils.convs.cifar_resnet.resnet20mnist()[source]#

Constructs a ResNet-20 model for MNIST.

models.slca_utils.convs.cifar_resnet.resnet32()[source]#

Constructs a ResNet-32 model for CIFAR-10.

models.slca_utils.convs.cifar_resnet.resnet32mnist()[source]#

Constructs a ResNet-32 model for MNIST.

models.slca_utils.convs.cifar_resnet.resnet44()[source]#

Constructs a ResNet-44 model for CIFAR-10.

models.slca_utils.convs.cifar_resnet.resnet56()[source]#

Constructs a ResNet-56 model for CIFAR-10.