class_docstr: Test class to check the initialization of adapters.
class_docstr_tok: ["Test","class","to","check","the","initialization","of","adapters","."]
code: def test_lora_conv2d_false(self):
      torch.manual_seed(0)
  
      model = self.get_model()
      config = LoraConfig(
          target_modules=["conv2d"], init_lora_weights=False
      )
      model = get_peft_model(model, config)
      weight_B = model.conv2d.lora_B["default"].weight
  
      # with init_lora_weights=False, weight B should *not* be zero. We don't care so much about the actual values
      # as long as they are not zero, in order to avoid identity transformation.
      self.assertFalse(
          torch.allclose(weight_B, torch.zeros_like(weight_B))
      )
  
imports: import unittest
  import torch
  from scipy import stats
  from torch import nn
  from peft import LoraConfig, get_peft_model
  from peft.utils import infer_device
label_desc: Use image node_id 12 for calling the InitializationTest obj's underlying member method code with example usage: obj.test_lora_conv2d_false() without return types