It's too hard to take advantage of named_modules

I want to modify batch norm all to group norm. So I am modifying the code, but it doesn’t work as well as I thought. Do you have any help?


Hi,

nu is a string, so you will have to use test.__getattribute__(nu) to access the attribute named as the content of nu.

1 Like

I still get the error can you help me?