Yolov7 with self-made layer but encounter with an error

username: RonaldYuren
cooked: <p>I am trying to do self training with yolov7 model ( <a href="https://github.com/WongKinYiu/yolov7/blob/main/models/common.py" class="inline-onebox" rel="noopener nofollow ugc">yolov7/models/common.py at main · WongKinYiu/yolov7 · GitHub</a> ) ； I modified the common.py(yolov7/models/common.py),   using the custom-designed layer “Conv” which is different form the original ones.<br>
The different is just like below pictures:<br>
<strong>The Original :</strong><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/c/9/c96c42314f60b8a0c16290319ab6ea0f8d82d69c.png" data-download-href="https://discuss.pytorch.org/uploads/default/c96c42314f60b8a0c16290319ab6ea0f8d82d69c" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/c/9/c96c42314f60b8a0c16290319ab6ea0f8d82d69c.png" alt="image" data-base62-sha1="sJRUHcP1axokjuAbY7aZ8TLRAle" width="690" height="165" data-dominant-color="444443"><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">image</span><span class="informations">1546×371 25.9 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><strong>The self-made :</strong><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/a/e/ae4723480537ddb3cf4e821dd8a13f5b10e2e98e.png" data-download-href="https://discuss.pytorch.org/uploads/default/ae4723480537ddb3cf4e821dd8a13f5b10e2e98e" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/a/e/ae4723480537ddb3cf4e821dd8a13f5b10e2e98e.png" alt="image" data-base62-sha1="oRJuuYBsCSpSQ6eYseCumweeL3E" width="525" height="499" data-dominant-color="444442"><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">image</span><span class="informations">866×824 57.6 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><strong>below is the self-made-layer file with the sharing link:</strong></p><aside class="onebox googledrive" data-onebox-src="https://drive.google.com/file/d/1KaPA2vV8UFo4ffnXYvbwGpGWzzI11vWD/view?usp=sharing">
  <header class="source">

      <a href="https://drive.google.com/file/d/1KaPA2vV8UFo4ffnXYvbwGpGWzzI11vWD/view?usp=sharing" target="_blank" rel="noopener nofollow ugc">drive.google.com</a>
  </header>

  <article class="onebox-body">
      <a href="https://drive.google.com/file/d/1KaPA2vV8UFo4ffnXYvbwGpGWzzI11vWD/view?usp=sharing" target="_blank" rel="noopener nofollow ugc"><span class="googledocs-onebox-logo g-drive-logo"></span></a>



<h3><a href="https://drive.google.com/file/d/1KaPA2vV8UFo4ffnXYvbwGpGWzzI11vWD/view?usp=sharing" target="_blank" rel="noopener nofollow ugc">common.py</a></h3>

<p>Google Drive file.</p>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>And I have encountered the question<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/2/9/29f0dd889adb3721ec8d4c688b4675943ea5c13c.png" alt="image" data-base62-sha1="5Z1CVR6HNm9j2LgntixqP5ky37K" width="520" height="499"></p>
<p>Please help me to figure out the solution or error I made, Thank you !!!</p>

username: ptrblck
cooked: <p>Could you post a minimal and executable code snippet reproducing the issue, please?</p>