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 GradientsAccumulator
accumulator
-
Constructor Summary
Constructors Constructor Description LocalHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
broadcastUpdates(INDArray updates, int iterationNumber, int epochNumber)
This method does broadcast of given update message across networkvoid
initialize(@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:MessageHandler
This method does initial configuration of given MessageHandler instance- Specified by:
initialize
in interfaceMessageHandler
-
broadcastUpdates
public boolean broadcastUpdates(INDArray updates, int iterationNumber, int epochNumber)
Description copied from interface:MessageHandler
This method does broadcast of given update message across network- Specified by:
broadcastUpdates
in interfaceMessageHandler
- Returns:
- TRUE if something was sent, FALSE otherwise
-
-