Hi Ada!



 Ada:

throws RuntimeError: mat1 and mat2 shapes cannot be multiplied (1x200 and 100x1), as expected.
However, if I put it on the GPU:
…
it happily computes without throwing an error.


This appears to be a known bug that has recently been fixed.  See
this thread:

  
    
    
    Pytorch is allowing incorrect matrix multiplication when using cuda 
  
  
    Hey everyone, 
I have a minor issue and I am not sure if it is a bug or I am simply not understanding something. But I noticed that in my project I was getting some strange results for certain configurations and error messages not popping up when expected. 
To boil it down, I am allowed to multiply matrices of incompatible sizes so long as it takes place on the gpu. 
When running the following: 
input = torch.randn(5, 10)
network = nn.Linear(3, 3)

output = network(input) ## This should fail

I …
  


Best.
K. Frank