An init method is necessary because torch.nn.Module is an abstract class with the init being an abstract method and subclasses of abstract classes should implement all abstract methods.
Despite that fact the rest of your class should work the way you want it to