han.liu:

outputs += (k + ': ' + str(v[0].shape).ljust(30) + ' ')


So at that point, v is the list of paramters in this group. You add the first parameter’s shape (v[0].shape). You would want to loop over ‘v’ to process all parameters.
Best regards
Thomas