my modules are mapped to a name. I want to get the module and the name (but not the parameters). Is there a way to do that?
e.g.
mport torch
import torch.nn as nn

from collections import OrderedDict

params = OrderedDict([
    ('fc0', nn.Linear(in_features=4,out_features=4)),
    ('ReLU0', nn.ReLU()),
    ('fc1:final', nn.Linear(in_features=4,out_features=1))
])
mdl = nn.Sequential(params)