<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2>

<p dir="auto">when loading state_dict I'm getting<br>
<code class="notranslate">IncompatibleKeys(missing_keys=[], unexpected_keys=[])</code> message though model is loaded correctly. I feel we can have a conditional case before returning this named tuple when missing keys and unexpected keys are null</p>
<h2 dir="auto">Motivation</h2>

<p dir="auto">I thought it was some error and wasted some time to figure out finally that this wasn't an error at all. I am not sure if this a warning though.</p>
<h2 dir="auto">Pitch</h2>

<p dir="auto">I feel we can have a conditional case before returning this named tuple when missing keys and unexpected keys are null. If you are fine with this then please let me know, I'll submit at PR. Thanks</p>
<h2 dir="auto">Alternatives</h2>

<h2 dir="auto">Additional context</h2>
<p dir="auto">Now it prints <code class="notranslate">IncompatibleKeys(missing_keys=[], unexpected_keys=[])</code> upon a successful <code class="notranslate">load_state_dict</code>, and could be quite confusing. This can happen a lot, e.g., in jupyter notebooks.</p>
<p dir="auto">We can just subclass and overwrite <code class="notranslate">__repr__</code>.</p>