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

Allow setting functional_only = False #70

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

hanno-becker
Copy link
Collaborator

config.constraints.functional_only is a wrapper property around model_latencies and model_functional_units. However, previously it would only be supported to set functional_only = True, in which case both model_latencies and model_functional_units would be set to False -- attempting functional_only = False, in turn, would be silently ignored, which is certainly not desired.

This commit modifies the functional_only setter to always set both model_functional_units and model_latencies to the negation of the value that's being specified.

`config.constraints.functional_only` is a wrapper property around
`model_latencies` and `model_functional_units`. However, previously
it would only be supported to set `functional_only = True`, in which
case both `model_latencies` and `model_functional_units` would be
set to `False` -- attempting `functional_only = False`, in turn,
would be silently ignored, which is certainly not desired.

This commit modifies the `functional_only` setter to always set
both `model_functional_units` and `model_latencies` to the negation
of the value that's being specified.
@hanno-becker hanno-becker merged commit b27b6aa into main Jul 10, 2024
7 checks passed
@mkannwischer mkannwischer deleted the fix_functional_only branch July 10, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant