(self, hidden_states)
| 35 | self.to_v_ip = torch.nn.Linear(input_dim, output_dim, bias=False) |
| 36 | |
| 37 | def forward(self, hidden_states): |
| 38 | ip_k = self.to_k_ip(hidden_states) |
| 39 | ip_v = self.to_v_ip(hidden_states) |
| 40 | return ip_k, ip_v |
| 41 | |
| 42 | |
| 43 | class SDXLIpAdapter(torch.nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected