What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-03 03:10:18
runtimeerror: expected scalar type double but found float
Reference is from this github issue. When the error is RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #4 'mat1', you would need to use the .float() function since it says Expected object of scalar type Float. ... Add solution -
Other 2021-10-21 01:50:03
RuntimeError: expected scalar type Long but found Float
Reference is from this github issue. When the error is RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #4 'mat1', you would need to use the .float() function since it says Expected object of scalar type Float. ... Add solution