golf_federated.client.process.config.device package¶
golf_federated.client.process.config.device.base module¶
-
class
golf_federated.client.process.config.device.base.BaseClient(client_name: str)[source]¶ Bases:
objectClient object class, the class function supports the main operation of the client.
-
get_field() → dict[source]¶ Get data of specified fields for model aggregation.
- Returns:
Dict: Data of specified fields for model aggregation.
-
get_model() → List[source]¶ Get the current local model weight.
- Returns:
List: Current local model weight
-
abstract
init_trainer(*args) → None[source]¶ Abstract method for initializing the Trainer.
- Args:
*args: Variable number of parameters, see instantiation methods for details.
-