SyncFLJob
import com.mindspore.flclient.SyncFLJob
SyncFLJob defines the API flJobRun() for starting federated learning on the device, the API modelInference() for inference on the device, and the API getModel() for obtaining the latest model on the cloud.
Public Member Functions
Function |
---|
public FLClientStatus flJobRun() |
public int[] modelInference() |
public FLClientStatus getModel() |
flJobRun
public FLClientStatus flJobRun()
Starts a federated learning task on the device, for specific usage, please refer to the interface introduction document.
Return value
The status code of the flJobRun request.
modelInference
public int[] modelInference()
Starts an inference task on the device, for specific usage, please refer to the interface introduction document.
Return value
int[] composed of the labels inferred from the input.
getModel
public FLClientStatus getModel()
Obtains the latest model on the cloud, for specific usage, please refer to the interface introduction document.
Return value
The status code of the getModel request.