Might not be the best way, but for the inputs you could do something like:
current_children = model
while list(current_children.children()) != []: 
   current_children = list(current_children.children())[0]

for p_name, p in current_children.named_parameters():
    print('{}: {}'.format(p_name, p.dtype))