def METHOD_NAME(act_type_str):
    attrs = {}
    if act_type_str == 'relu6':
        attrs = {"threshold": threshold}
    if act_type_str == 'leaky_relu':
        attrs = {"alpha": alpha}
    if act_type_str == 'hard_swish':
        attrs = {"threshold": threshold, "scale": scale, "offset": offset}
    if act_type_str == "prelu":
        attrs = {"mode": mode_data, "data_format": "NCHW"}
    return attrs