Skip to content

Commit

Permalink
Readded
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikandreasseitz committed Oct 16, 2023
1 parent 9a0bf02 commit b7faa6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qadence/ml_tools/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _transform_x(self, x: dict[str, torch.Tensor] | Tensor) -> dict[str, Tensor]

else:
assert isinstance(self.model, torch.nn.Module) and isinstance(x, Tensor)
return self._input_scaling * x + self._input_shifting
return self._input_scaling * (x + self._input_shifting)

def forward(self, x: dict[str, Tensor] | Tensor, *args: Any, **kwargs: Any) -> Tensor:
y = self.model(self._transform_x(x), *args, **kwargs)
Expand Down

0 comments on commit b7faa6a

Please sign in to comment.