Class LocalHandler
- java.lang.Object
-
- org.deeplearning4j.optimize.solvers.accumulation.LocalHandler
-
- All Implemented Interfaces:
Serializable,MessageHandler
public class LocalHandler extends Object implements MessageHandler
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected GradientsAccumulatoraccumulator
-
Constructor Summary
Constructors Constructor Description LocalHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbroadcastUpdates(INDArray updates, int iterationNumber, int epochNumber)This method does broadcast of given update message across networkvoidinitialize(@NonNull GradientsAccumulator accumulator)This method does initial configuration of given MessageHandler instance
-
-
-
Field Detail
-
accumulator
protected transient GradientsAccumulator accumulator
-
-
Method Detail
-
initialize
public void initialize(@NonNull @NonNull GradientsAccumulator accumulator)Description copied from interface:MessageHandlerThis method does initial configuration of given MessageHandler instance- Specified by:
initializein interfaceMessageHandler
-
broadcastUpdates
public boolean broadcastUpdates(INDArray updates, int iterationNumber, int epochNumber)
Description copied from interface:MessageHandlerThis method does broadcast of given update message across network- Specified by:
broadcastUpdatesin interfaceMessageHandler- Returns:
- TRUE if something was sent, FALSE otherwise
-
-