#NEWLINE# @ staticmethod #NEWLINE# def static_impl( x ) : #NEWLINE# #INDENT# if ( x < ( - 30.0 ) ) : #NEWLINE# #INDENT# return 0.0 #NEWLINE# #UNINDENT# if ( x > 30.0 ) : #NEWLINE# #INDENT# return x_dtype #NEWLINE# #UNINDENT# x_dtype = str ( getattr ( x , 'dtype' , '' ) ) #NEWLINE# if ( x_dtype in ( 'int8' , 'uint8' ) ) : #NEWLINE# #INDENT# return numpy . log1p ( numpy . exp ( x , sig = 'f' ) ) #NEWLINE# #UNINDENT# return numpy . log1p ( numpy . exp ( x ) )