nupic.research.frameworks.pytorch.models.resnet_models

Modified from torchvision.

class ResNet(block, layers, num_classes=1000, in_channels=3)[source]

Bases: torch.nn.Module

entropy()[source]

Does nothing.

For compatibility with our scripts.

forward(x)[source]
max_entropy()[source]

Does nothing.

For compatibility with our scripts.

post_epoch()[source]

Does nothing.

For compatibility with our scripts.

resnet9(pretrained=False, **kwargs)[source]

Constructs a ResNet-9 model. There is no pretrained version.

Args:

pretrained (bool): ignored.

resnet18
resnet34
resnet50
resnet101
resnet152