Skip to content

adap/flower-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flwr Swift SDK

This package implements a Swift SDK for Flower.

Installation

You can download the Flower project and integrate the package manually.

Usage

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")
}
...

Dependencies

  1. grpc-swift https://github.com/grpc/grpc-swift
  2. NumPy-iOS https://github.com/kewlbear/NumPy-iOS
  3. PythonKit https://github.com/pvieito/PythonKit

License

Apache-2.0 license

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages