DebugAH

How to Solve Your Programmer Error

Skip to content
  • Home
  • Linux
  • JAVA
  • Python
  • Javasript
  • MYSQL
  • Windows
  • Error

RuntimeError: “mse_cuda” not implemented for ‘Long’ [How to Solve]

criterion = nn.MSELoss()
criterion(a, b)

This is dtype=torch.float for a and dtype=torch.int64 for b
So, both change to float

 

Similar Posts:

  • [Solved] Pytoch nn.CrossEntropyLoss Error: RuntimeError: expected scalar type Long but found Float
  • Keras.utils.to in keras_ Categorical method
  • InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor ‘…
  • [Solved] DCNv2 Compile Error: error: identifier “THCudaBlas_SgemmBatched” is undefined
  • Tensorflowcenter {typeerror} non hashable type: “numpy. Ndarray”
  • After installing torch on Linux, an error is still reported: importerror: no module named torch
  • Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same
  • Error in loading pre training weight in torch. Load() in pytorch
  • PyTorch UserWarning: volatile was removed and now has no effect. Use `with torch.no_grad():` inst
  • Examples of torch.NN.Functional.Relu() and torch.NN.Relu()

This entry was posted in Error and tagged RuntimeError: "mse_cuda" not implemented for 'Long' on November 8, 2021 by Robins.

Post navigation

← DataRow Write Data Error: column 0 or column 1 cannot be found CentOS aspnet core requests HTTPS site certificate error: The SSL connection could not be established, see inner exception. →

Recent Posts

  • [Solved] must appear in the GROUP BY clause or be used in an aggregate function
  • [Solved] Shell Error: syntax error: invalid arithmetic operator (error token is “
  • [Solved] FATAL ERROR: wasm code commit Allocation failed – process out of memory
  • [Solved] Mac Error: ERROR launching ‘JD-GUI’
  • [Solved] passwd: Authentication token manipulation error
  • [Solved] xtrabackup: error: xb_load_tablespaces() failed with error code 57
  • [Solved] Azure Function Enable Managed Identity and Powershell Funciton Report Error: ERROR: ManagedIdentityCredential authentication failed
  • [Solved] Application_Error not firing when customerrors = “On”
  • [Solved] MAVEN-COMPILER-PLUGIN Compile Error: FATAL ERROR: UNABLE TO FIND PACKAGE JAVA.LANG IN CLASSPATH OR BOOTCLASSPATH
  • [Solved] Json.Net Error: Error getting value from ‘ScopeId’ on ‘System.Net.IPAddress’

Tags

  • )
  • android
  • android studio
  • CentOS
  • centos7
  • chrome
  • DebugAH
  • django
  • docker
  • eclipse
  • git
  • github
  • go
  • hadoop
  • Hive
  • IDEA
  • ios
  • java
  • jenkins
  • Linux
  • Mac
  • maven
  • MyBatis
  • mysql
  • nginx
  • No module named XXX error
  • npm
  • Oracle
  • php
  • pip
  • pycharm
  • Python
  • Python TypeError
  • redis
  • shell
  • spring
  • springBoot
  • ssh
  • SVN
  • tensorflow
  • tomcat
  • ubuntu
  • vue
  • Windows
  • Yum
Proudly powered by WordPress