@norm_inf You’re trying to implement SELU 

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      Add SELU (Scaled ELU) 105
    

    
      
        opened 
        
          
        
        Jun 10, 2017
      
      

        
          closed 
        
          
        
        Jun 11, 2017
      
        

      
        
          
          ethancaballero
        
      
    
  



  Here's TF example:
https://github.com/bioinf-jku/SNNs/blob/master/selu.py#L20-L25
Ideally it would be done in C in TH backend.
However, it could also be done in python if a...