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

Updated configuration parsing api for GaNDLF #920

Merged
merged 2 commits into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openfl/federated/task/runner_gandlf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from GANDLF.compute.generic import create_pytorch_objects
from GANDLF.compute.training_loop import train_network
from GANDLF.compute.forward_pass import validate_network
from GANDLF.parseConfig import parseConfig
from GANDLF.config_manager import ConfigManager


class GaNDLFTaskRunner(TaskRunner):
Expand Down Expand Up @@ -49,9 +49,9 @@ def __init__(
gandlf_config = yaml.safe_load(open(gandlf_config, "r"))

try:
gandlf_config = parseConfig(gandlf_config)
gandlf_config = ConfigManager(gandlf_config)
except Exception:
self.logger.info("WARNING: GANDLF.parseConfig did not work as expected.")
self.logger.info("WARNING: GANDLF.config_manager.ConfigManager did not work.")

(
model,
Expand Down
Loading