allreduce
aims to first combine tables from other workers and then broadcast the accumulated table. All workers should run it concurrently. The defination of the method is:
boolean allreduce(final String contextName, final String operationName, final Table<P> table, final DataMap dataMap, final Workers workers)
contextName
— the name of the contextoperationName
— the name of the operationtable
— the name of the data tabledataMap
— the data mapworkers
— the workers
Example
allreduce(contextName, "allreduce", table, dataMap, workers);