def _get_activation(self, inputs, activation, **kwargs):
        """Get activation function. Convert if is string"""
        if isinstance(activation, string_types):
            return symbol.Activation(inputs, act_type=activation, **kwargs)
        else:
            return activation(inputs, **kwargs)
def _get_activation ( self , inputs , activation , ** kwargs ) : if isinstance ( activation , string_types ) : return symbol . Activation ( inputs , act_type = activation , ** kwargs ) else : return activation ( inputs , ** kwargs )
Get activation function. Convert if is string