It's too hard to take advantage of named_modules

439327bcc62cd8e45e96: <p>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?<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/c/cd6d1324983b6fc6eedfacdcb931dcc60dd3b91c.png" data-download-href="https://discuss.pytorch.org/uploads/default/cd6d1324983b6fc6eedfacdcb931dcc60dd3b91c" title="adasdasdas"><img src="https://discuss.pytorch.org/uploads/default/original/2X/c/cd6d1324983b6fc6eedfacdcb931dcc60dd3b91c.png" alt="adasdasdas" data-base62-sha1="tjhzwTEtpfrber311ap2iJxue3G" width="690" height="361" data-dominant-color="121111"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">adasdasdas</span><span class="informations">1070×560 6.44 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/e/e2c7dccec4bd2466480e8ab6b5b29c49e692d1e4.png" data-download-href="https://discuss.pytorch.org/uploads/default/e2c7dccec4bd2466480e8ab6b5b29c49e692d1e4" title="12390121"><img src="https://discuss.pytorch.org/uploads/default/original/2X/e/e2c7dccec4bd2466480e8ab6b5b29c49e692d1e4.png" alt="12390121" data-base62-sha1="wmc6VPb45jAqD6zuPyW5ysUNMvG" width="690" height="53" data-dominant-color="1A1A1A"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">12390121</span><span class="informations">1263×98 2.19 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

spanev: <p>Hi,</p>
<p><code>nu</code> is a string, so you will have to use <code>test.__getattribute__(nu)</code> to access the attribute named as the content of <code>nu</code>.</p>

439327bcc62cd8e45e96: <p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/7/747aaaada40a6ac6beb21ca082d1d13cb9d2a567.png" data-download-href="https://discuss.pytorch.org/uploads/default/747aaaada40a6ac6beb21ca082d1d13cb9d2a567" title="error_occur"><img src="https://discuss.pytorch.org/uploads/default/original/2X/7/747aaaada40a6ac6beb21ca082d1d13cb9d2a567.png" alt="error_occur" data-base62-sha1="gCqck9mlzOKYgU1UwUAaqZV5xDF" width="690" height="326" data-dominant-color="151517"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">error_occur</span><span class="informations">723×342 3.85 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div> <div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/8/8dfc2ad99971fbdc5248ce5b7dcb5b74869d3404.png" data-download-href="https://discuss.pytorch.org/uploads/default/8dfc2ad99971fbdc5248ce5b7dcb5b74869d3404" title="error_occur1"><img src="https://discuss.pytorch.org/uploads/default/original/2X/8/8dfc2ad99971fbdc5248ce5b7dcb5b74869d3404.png" alt="error_occur1" data-base62-sha1="kg3AxSEynFdIdird15vqOpdHRXe" width="690" height="97" data-dominant-color="1B1B1B"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">error_occur1</span><span class="informations">1066×151 2.74 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>
<p>I still get the error can you help me?</p>