I tried that method too - it gives me the same behavior. It will also throw this afterwards:
    outputs = model(x)

TypeError: 'NoneType' object is not callable

Seems like whenever I try to import my file with the nn.Module class, just due to the import line, it will try to retrain my model…