Torch in python unable to get some layers like add from model structure
Torch in python unable to get some layers like add from model structure Question: I have this simple code to write down structure of network. model = torch.jit.load(‘best5.torchscript’) file_object = open(‘sample.txt’, ‘a’) for name, module in model.named_modules(): file_object.write(str(module)) Problem is that some layers like "add" is not present for example this is part from output …