Merge pull request #778 from Conless/fix-shape

[Fix] Shape error in KLinearMarlin
This commit is contained in:
Atream 2025-03-03 19:58:52 +08:00 committed by GitHub
commit f46b3fd51c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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