<s> import numpy as np <EOL> from . . elementwise import unary <EOL> from . . wrap import elementwise <EOL> def relu ( x , out = None ) : <EOL> return unary ( elementwise . relu_op , x , out ) <EOL> def relu_d ( x , out = None ) : <EOL> return unary ( elementwise . relu_d_op , x , out ) <EOL> def sigmoid ( x , out = None ) : <EOL> return unary ( elementwise . sigmoid_op , x , out ) <EOL> def sigmoid_d ( x , out = None ) : <EOL> return unary ( elementwise . sigmoid_d_op , x , out ) <EOL> def softplus ( x , out = None ) : <EOL> return unary ( elementwise . softplus_op , x , out ) <EOL> def softplus_d ( x , out = None ) : <EOL> return unary ( elementwise . softplus_d_op , x , out ) <EOL> def tanh_d ( x , out = None ) : <EOL> return unary ( elementwise . tanh_d_op , x , out ) </s>
