public abstract class BaseParameterUpdater extends 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, waitpartialUpdate, requiredUpdatesForPass, shouldReplicate, status, toJson, update, updateprotected UpdateStorage updateStorage
protected NDArrayHolder ndArrayHolder
public BaseParameterUpdater(UpdateStorage updateStorage, NDArrayHolder ndArrayHolder)
public BaseParameterUpdater(UpdateStorage updateStorage)
updateStorage - the update storage to usepublic BaseParameterUpdater()
InMemoryUpdateStoragepublic boolean isReady()
isReady in interface ParameterServerUpdaterpublic boolean isAsync()
isAsync in interface ParameterServerUpdaterpublic NDArrayHolder ndArrayHolder()
ndArrayHolder in interface ParameterServerUpdaterpublic void reset()
reset in interface ParameterServerUpdaterpublic int numUpdates()
numUpdates in interface ParameterServerUpdaterCopyright © 2021. All rights reserved.