Skip to content

Commit

Permalink
Rename call sites from tff.program.X to `federated_language.program…
Browse files Browse the repository at this point in the history
….X` in `//third_party/py/dataset_grouper/...`.

For each

* FederatedDataSource
* FederatedDataSourceIterator
* check_in_federated_context
* ComputationArg
* contains_only_server_placed_data
* FederatedContext
* LoggingReleaseManager
* MemoryReleaseManager
* ProgramStateExistsError
* ProgramStateManager
* ProgramStateNotFoundError
* ProgramStateStructure
* ProgramStateValue
* DelayedReleaseManager
* FilteringReleaseManager
* GroupingReleaseManager
* NotFilterableError
* PeriodicReleaseManager
* ReleasableStructure
* ReleasableValue
* ReleaseManager
* MaterializableStructure
* MaterializableTypeSignature
* MaterializableValue
* MaterializableValueReference
* materialize_value
* MaterializedStructure
* MaterializedValue

See:

* google-parfait/federated-language@2ec477b
* google-parfait/tensorflow-federated@0ae85a7

for more information.

PiperOrigin-RevId: 705144723
  • Loading branch information
michaelreneer authored and copybara-github committed Dec 11, 2024
1 parent b1f2420 commit cd35025
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/training/train_tff.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from absl import flags
from absl import logging
import dataset_grouper as dsgp
import federated_language
import tensorflow as tf
import tensorflow_datasets as tfds
import tensorflow_federated as tff
Expand Down Expand Up @@ -188,7 +189,7 @@ def training_selection_fn(round_num: int) -> list[tf.data.Dataset]:
training_process=learning_process,
training_selection_fn=training_selection_fn,
total_rounds=_TOTAL_ROUNDS.value,
metrics_managers=[tff.program.LoggingReleaseManager()],
metrics_managers=[federated_language.program.LoggingReleaseManager()],
)


Expand Down

0 comments on commit cd35025

Please sign in to comment.