fixes DequantizeLinear #88

This commit is contained in:
ZZZJ 2025-12-09 20:05:08 +08:00
parent 58c49c5bf7
commit e5ff0163ad
1 changed files with 0 additions and 5 deletions

View File

@ -17,11 +17,6 @@ class Model(nn.Module):
self.zero_point = -10.0
def forward(self, x: torch.Tensor) -> torch.Tensor:
"""
x: [N] int8
Output: [N] float32
Formula: (x - zp) * scale
"""
return (x.float() - self.zero_point) * self.scale