Skip to content

Commit

Permalink
Remove TBReceiver from tf job api
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanTingHsieh committed Oct 14, 2024
1 parent fa135de commit 49194b0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions nvflare/app_opt/tf/job_config/base_fed_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from nvflare.app_common.widgets.streaming import AnalyticsReceiver
from nvflare.app_common.widgets.validation_json_generator import ValidationJsonGenerator
from nvflare.app_opt.tf.job_config.model import TFModel
from nvflare.app_opt.tracking.tb.tb_receiver import TBAnalyticsReceiver
from nvflare.job_config.api import FedJob, validate_object_for_job


Expand Down Expand Up @@ -94,13 +93,10 @@ def __init__(

if analytics_receiver:
validate_object_for_job("analytics_receiver", analytics_receiver, AnalyticsReceiver)
else:
analytics_receiver = TBAnalyticsReceiver()

self.to_server(
id="receiver",
obj=analytics_receiver,
)
self.to_server(
id="receiver",
obj=analytics_receiver,
)

if initial_model:
self.comp_ids["persistor_id"] = self.to_server(TFModel(model=initial_model, persistor=model_persistor))
Expand Down

0 comments on commit 49194b0

Please sign in to comment.