(self, x_or_x_list)
| 251 | return attn_bias.split(x) |
| 252 | |
| 253 | def forward(self, x_or_x_list): |
| 254 | if isinstance(x_or_x_list, Tensor): |
| 255 | return super().forward(x_or_x_list) |
| 256 | elif isinstance(x_or_x_list, list): |
| 257 | if not XFORMERS_AVAILABLE: |
| 258 | raise AssertionError("xFormers is required for using nested tensors") |
| 259 | return self.forward_nested(x_or_x_list) |
| 260 | else: |
| 261 | raise AssertionError |
nothing calls this directly
no test coverage detected