I got an answer in stackoverflow:

  
      stackoverflow.com
  
  
      
    
  

  Torch C++: Getting the value of a int tensor by using *.data<int>() 20



  pytorch, torch, libtorch



  asked by
  
  
    Afshin Oroojlooy
  
  on 02:22PM - 15 Jan 19 UTC