fix: wrong shape in KLinearMarlin.

This commit is contained in:
Yi Pan 2025-03-03 17:34:37 +08:00
parent 4e43e8a4ee
commit 01755a60c0
No known key found for this signature in database
GPG key ID: DEBAB8AF77793700

View file

@ -347,7 +347,6 @@ class KLinearMarlin(KLinearBase):
orig_shape[-1] = self.out_features orig_shape[-1] = self.out_features
if self.has_bias: if self.has_bias:
x = x + self.bias x = x + self.bias
orig_shape[-1] = self.n
return x.reshape(orig_shape).to(orig_dtype) return x.reshape(orig_shape).to(orig_dtype)
def unload(self): def unload(self):