Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading peotry lock to include jinja update. #308

Merged
merged 7 commits into from
Jan 6, 2025
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
- id: isort

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.0
hooks:
- id: mypy
name: mypy
Expand Down
4 changes: 2 additions & 2 deletions fl4health/parameter_exchange/parameter_packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def unpack_parameters(self, packed_parameters: NDArrays) -> Tuple[NDArrays, floa
# The last entry in the parameters list is assumed to be a clipping bound (even if we're evaluating)
split_size = len(packed_parameters) - 1
model_parameters = packed_parameters[:split_size]
clipping_bound = float(packed_parameters[split_size:][0])
return model_parameters, clipping_bound
clipping_bound = packed_parameters[split_size:][0]
return model_parameters, clipping_bound.item()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needed to be updated as it was throwing a deprecation error that was killing the smoke tests.



class ParameterPackerAdaptiveConstraint(ParameterPacker[float]):
Expand Down
Loading
Loading