How can I store submodule but in completly freezed way?
Consider the example:
class PerceptualLoss(nn.Module):
    def __init__(self, vgg):
        super().__init__()
        self.vgg = vgg

In this example parameters of vgg will be presented in parameters in PerceptualLoss wich is incorrect e.g. while using with Optimizer. But at the same time methods like .cuda(), .cpu(), .to() and others should track parameters of vgg. Is that achivable?