class_docstr: LoKr implemented in Conv2d layer
class_docstr_tok: ["LoKr","implemented","in","Conv2d","layer"]
code: def __init__(
      self,
      base_layer: nn.Module,
      device: Optional[Union[str, torch.device]] = None,
      dtype: Optional[torch.dtype] = None,
      adapter_name: str = "default",
      r: int = 0,
      alpha: float = 0.0,
      rank_dropout: float = 0.0,
      module_dropout: float = 0.0,
      use_effective_conv2d: bool = False,
      init_weights: bool = True,
      **kwargs,
  ):
      super().__init__(base_layer)
  
      # Create adapter and set it active
      self._active_adapter = adapter_name
      self.update_layer(
          adapter_name,
          r,
          alpha,
          rank_dropout,
          module_dropout,
          init_weights,
          use_effective_conv2d,
          **kwargs,
      )
  
imports: import math
  from typing import Any, Optional, Set, Tuple, Union
  import torch
  import torch.nn
  import torch.nn.functional
  from peft.tuners.lycoris_utils import LycorisLayer
label_desc: Use image node_id 1 to create a new Conv2d object from inherited base classes: LoKrLayer with example: obj = Conv2d(base_layer, device, dtype, adapter_name, r, alpha, rank_dropout, module_dropout, use_effective_conv2d, init_weights)