This package implements a Swift SDK for Flower.
You can download the Flower project and integrate the package manually.
A comprehensive example is available in: examples/ios/
. To give information about the usage structurally:
import flwr
...
let mlFlwrClient = MLFlwrClient(layerWrappers: layerWrappers, dataLoader: dataLoader, compiledModelUrl: compiledModelUrl)
let flwrGRPC = FlwrGRPC(serverHost: hostname, serverPort: port)
startFlwrGRPC(client: mlFlwrClient) {
// completion handler
print("Federated learning completed")
}
...
- grpc-swift https://github.com/grpc/grpc-swift
- NumPy-iOS https://github.com/kewlbear/NumPy-iOS
- PythonKit https://github.com/pvieito/PythonKit
Apache-2.0 license