public abstract class BaseParameterUpdater extends java.lang.Object implements ParameterServerUpdater
Modifier and Type | Field and Description |
---|---|
protected NDArrayHolder |
ndArrayHolder |
protected UpdateStorage |
updateStorage |
Constructor and Description |
---|
BaseParameterUpdater()
Initializes this updater
with
InMemoryUpdateStorage |
BaseParameterUpdater(UpdateStorage updateStorage)
Initialize this updater
with a custom update storage
|
BaseParameterUpdater(UpdateStorage updateStorage,
NDArrayHolder ndArrayHolder) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAsync()
Returns true if the
given updater is async
or synchronous
updates
|
boolean |
isReady()
Returns true if the updater is
ready for a new array
|
NDArrayHolder |
ndArrayHolder()
Get the ndarray holder for this
updater
|
int |
numUpdates()
Num updates passed through
the updater
|
void |
reset()
Reset internal counters
such as number of updates accumulated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
partialUpdate, requiredUpdatesForPass, shouldReplicate, status, toJson, update, update
protected UpdateStorage updateStorage
protected NDArrayHolder ndArrayHolder
public BaseParameterUpdater(UpdateStorage updateStorage, NDArrayHolder ndArrayHolder)
public BaseParameterUpdater(UpdateStorage updateStorage)
updateStorage
- the update storage to usepublic BaseParameterUpdater()
InMemoryUpdateStorage
public boolean isReady()
isReady
in interface ParameterServerUpdater
public boolean isAsync()
isAsync
in interface ParameterServerUpdater
public NDArrayHolder ndArrayHolder()
ndArrayHolder
in interface ParameterServerUpdater
public void reset()
reset
in interface ParameterServerUpdater
public int numUpdates()
numUpdates
in interface ParameterServerUpdater