title: Pytorch matmul - RuntimeError: "addmm_impl_cpu_" not implemented for 'Half'
body: <p>When I am running pytorch matmul, the following error is thrown:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/omrastogi/Desktop/Side/One-Class-Classification-Customer-Complaints/pattern.py&quot;, line 71, in &lt;module&gt;
      print(obj.infer(list([df.text[0]]), list([df.reason[0]])))
    File &quot;/home/omrastogi/Desktop/Side/One-Class-Classification-Customer-Complaints/pattern.py&quot;, line 45, in infer
      cos_sm = self.batch_cosine_similarity(enc1, enc2)
    File &quot;/home/omrastogi/Desktop/Side/One-Class-Classification-Customer-Complaints/pattern.py&quot;, line 51, in batch_cosine_similarity
      dot_prd = torch.matmul(inp1, inp2.transpose(0, 1))
  RuntimeError: &quot;addmm_impl_cpu_&quot; not implemented for 'Half'
  </code></pre>
  <p>inp1 --&gt; [1<em>256]<br />
  inp2 --&gt; [1</em>256]</p>