title: RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 3 and 1 in dimension 1
body: <p>While training the resnet50 model through pytorch I got this error:</p>
  
  <blockquote>
    <p>RuntimeError: invalid argument 0: Sizes of tensors must match except
    in dimension 0. Got 3 and 1 in dimension 1 at
    /pytorch/aten/src/TH/generic/THTensorMoreMath.cpp:1333</p>
  </blockquote>
  
  <p>I'm using this: <a href="http://github.com/Helias/Car-Model-Recognition/" rel="nofollow noreferrer">http://github.com/Helias/Car-Model-Recognition/</a></p>
  
  <p>with this dataset <a href="http://vmmrdb.cecsresearch.org/" rel="nofollow noreferrer">http://vmmrdb.cecsresearch.org/</a></p>