Asa-Nisi-Masa:

model.classifier[1] = torch.nn.Linear(in_features=1280, out_features=3, bias=True) y = model.forward(x) print(y.min().item(), y.max().item()) # -0.185, 0.6268


I think if we change the input, then we will get values outside of [-1, 1] range.
I was able to get greater than 1 value,
x = torch.randn(1, 3, 224, 224)
model.classifier[1] = torch.nn.Linear(in_features=1280, out_features=3, bias=True)
y = model.forward(x)
print(y.min().item(), y.max().item())

-0.0004289243370294571 1.1706701517105103