(self, dim_in: int, dim_out: int, bias: bool = True)
| 101 | """ |
| 102 | |
| 103 | def __init__(self, dim_in: int, dim_out: int, bias: bool = True): |
| 104 | super().__init__() |
| 105 | self.proj = nn.Linear(dim_in, dim_out * 2, bias=bias) |
| 106 | |
| 107 | def gelu(self, gate: torch.Tensor) -> torch.Tensor: |
| 108 | if gate.device.type == "mps" and is_torch_version("<", "2.0.0"): |