def METHOD_NAME(self, lora_A, lora_B, config=LoRAConfig()):
    def T(w):
        return w.T if config.fan_in_fan_out else w
    if config.r > 0:
        scaling = config.lora_alpha / config.r
        weight_data_increase = T(lora_B @ lora_A) * scaling
        return weight_data_increase
    return 0