'Get activation function. Convert if is string'

def _get_activation(self, F, inputs, activation, **kwargs):

    if isinstance(activation, string_types):
        return F.Activation(inputs, act_type=activation, **kwargs)
    else:
        return activation(inputs, **kwargs)
