public abstract class BaseAggregation extends BaseVoidMessage implements VoidAggregation, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected short |
aggregationType |
protected short |
aggregationWidth |
protected Map<Short,org.nd4j.linalg.api.ndarray.INDArray> |
chunks |
protected AtomicInteger |
chunksCounter |
protected int |
numberOfElements |
protected org.nd4j.linalg.api.ndarray.INDArray |
payload |
protected short |
shardIndex |
clipboard, messageType, originatorId, retransmitCount, role, storage, targetId, taskId, trainer, transport, voidConfiguration| Modifier | Constructor and Description |
|---|---|
protected |
BaseAggregation() |
protected |
BaseAggregation(long taskId,
short aggregationWidth,
short shardIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulateAggregation(VoidAggregation aggregation) |
protected void |
addToChunks(org.nd4j.linalg.api.ndarray.INDArray array) |
byte[] |
asBytes() |
org.agrona.concurrent.UnsafeBuffer |
asUnsafeBuffer() |
org.nd4j.linalg.api.ndarray.INDArray |
getAccumulatedResult() |
int |
getMessageType() |
int |
getMissingChunks() |
short |
getTargetId() |
void |
setShardIndex(short shardIndex) |
attachContext, extractContext, incrementRetransmitCount, isBlockingMessage, isJoinSupported, joinMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAggregationType, getPayload, getShardIndexattachContext, extractContext, fromBytes, getOriginatorId, getRetransmitCount, getTaskId, incrementRetransmitCount, isBlockingMessage, isJoinSupported, joinMessage, processMessage, setOriginatorId, setTargetIdprotected short aggregationType
protected short aggregationWidth
protected int numberOfElements
protected short shardIndex
protected org.nd4j.linalg.api.ndarray.INDArray payload
protected transient AtomicInteger chunksCounter
protected BaseAggregation()
protected BaseAggregation(long taskId,
short aggregationWidth,
short shardIndex)
public void setShardIndex(short shardIndex)
protected void addToChunks(org.nd4j.linalg.api.ndarray.INDArray array)
public void accumulateAggregation(@NonNull
VoidAggregation aggregation)
accumulateAggregation in interface VoidAggregationpublic org.nd4j.linalg.api.ndarray.INDArray getAccumulatedResult()
getAccumulatedResult in interface VoidAggregationpublic int getMissingChunks()
getMissingChunks in interface VoidAggregationpublic int getMessageType()
getMessageType in interface VoidMessagegetMessageType in class BaseVoidMessagepublic byte[] asBytes()
asBytes in interface VoidMessageasBytes in class BaseVoidMessagepublic org.agrona.concurrent.UnsafeBuffer asUnsafeBuffer()
asUnsafeBuffer in interface VoidMessageasUnsafeBuffer in class BaseVoidMessagepublic short getTargetId()
getTargetId in interface VoidMessageCopyright © 2017. All rights reserved.