in glide_text2im/clip/utils.py [0:0]
def forward(self, x: torch.Tensor) -> torch.Tensor:
w = self.w if self.w.dtype == x.dtype else self.w.to(x.dtype)
b = (
self.bias_filter_fn(self.b if self.b.dtype == x.dtype else self.b.to(x.dtype))
if self.use_bias
else None
)
return F.linear(x, w, b)