def gamma_beta_const_defs(func_attrs: Dict[str, Any]) -> str:
    """
    Return rendered code string where we define the default gamma (1.0) and
    beta (0.0) values, respectively.
    """
    gamma_constant = func_attrs["gamma_constant"]
    is_gamma_const = gamma_constant is not None
    beta_constant = func_attrs["beta_constant"]
    is_beta_const = beta_constant is not None

    return GAMMA_BETA_CONST_DEFS_TEMPLATE.render(
        is_gamma_const=is_gamma_const,
        gamma_constant=gamma_constant,
        is_beta_const=is_beta_const,
        beta_constant=beta_constant,
    )
Return rendered code string where we define the default gamma (1.0) and
beta (0.0) values, respectively.
python/aitemplate/backend/cuda/layernorm_sigmoid_mul/layernorm_common.py