github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      add torch.square 79
    

    
      
        opened 
        
          
        
        Nov 27, 2019
      
      


      
        
          
          yaroslavvb
        
      
    
  



  torch.square would be useful when you need to do x*x but x is a large expression
np.square([1,2,3]) # => array([1, 4, 9])
tf.square([1,2,3]).eval()...



    enhancement
    module: operators
    triaged