Fix issue with chroma when not quantizing
This commit is contained in:
@@ -403,6 +403,7 @@ class Approximator(nn.Module):
|
|||||||
return next(self.parameters()).device
|
return next(self.parameters()).device
|
||||||
|
|
||||||
def forward(self, x: Tensor) -> Tensor:
|
def forward(self, x: Tensor) -> Tensor:
|
||||||
|
x = x.to(self.in_proj.weight.dtype)
|
||||||
x = self.in_proj(x)
|
x = self.in_proj(x)
|
||||||
|
|
||||||
for layer, norms in zip(self.layers, self.norms):
|
for layer, norms in zip(self.layers, self.norms):
|
||||||
|
|||||||
Reference in New Issue
Block a user