Make sure to properly call the parent __init__ function when creating your own nn.Module().
Also make sure that you don’t have any other class/function called View that could conflict with your new one.