Hi,
I edited your post to make the code a bit more readable 
I think the main confusion comes from the fact that your class name is model and the name of the instance you create is model as well. I am pretty sure that you call forward_model = model().double() with model already being an instance and not the class.
You can rename the class MyModel or something and it should make it clearer.