MagNET / magnet /eqV2 /module_list.py
ekwan16's picture
Add files using upload-large-folder tool
64c992d verified
Raw
History Blame Contribute Delete
237 Bytes
import torch
class ModuleListInfo(torch.nn.ModuleList):
def __init__(self, info_str, modules=None):
super().__init__(modules)
self.info_str = str(info_str)
def __repr__(self):
return self.info_str