I’ve written a more general (and efficient) unravel_index function, which I have posted here:

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      add torch.unravel_index 421
    

    
      
        opened 
        
          
        
        Mar 30, 2020
      
      


      
        
          
          tycho01
        
      
    
  



  🚀 Feature
This function would mirror np.unravel_index; a basic Torch implementation and todo to formally expose such an implementation were previously added...



    feature
    module: numpy
    triaged


  
  
    
    
  
  


I’m quite new to the PyTorch community so I don’t really know how I should (or even if I should) do a PR for that.
Since you are the king of this forum, @ptrblck  maybe do you know ?