pytorch
8c1ee89f - Added super init to Module (#91819)

Commit
1 year ago
Added super init to Module (#91819) Added super init to Module for complex user modules derived from multiple python classes. And by adding the super __init__ call at the end so it doesn't change any functionality of Module class. I am working on building a module for simulating analog neural network on PyTorch. and this small change is really useful for that and we can definitely think of many other useful cases especially for more module or mro hierarchy. Issues: https://github.com/pytorch/pytorch/issues/28746, https://github.com/pytorch/pytorch/issues/48626, https://github.com/pytorch/pytorch/issues/61662, https://github.com/pytorch/pytorch/issues/74036 Pull Request resolved: https://github.com/pytorch/pytorch/pull/91819 Approved by: https://github.com/albanD
Author
Committer
Parents
Loading