Search in sources :

Example 6 with VoidAggregation

use of org.nd4j.parameterserver.distributed.messages.VoidAggregation in project nd4j by deeplearning4j.

the class Clipboard method unpin.

/**
 * This method removes given VoidAggregation from clipboard, and returns it
 *
 * @param taskId
 */
public VoidAggregation unpin(long originatorId, long taskId) {
    RequestDescriptor descriptor = RequestDescriptor.createDescriptor(originatorId, taskId);
    VoidAggregation aggregation;
    if ((aggregation = clipboard.get(descriptor)) != null) {
        clipboard.remove(descriptor);
        trackingCounter.decrementAndGet();
        return aggregation;
    } else
        return null;
}
Also used : VoidAggregation(org.nd4j.parameterserver.distributed.messages.VoidAggregation)

Aggregations

VoidAggregation (org.nd4j.parameterserver.distributed.messages.VoidAggregation)6 Test (org.junit.Test)1 Clipboard (org.nd4j.parameterserver.distributed.logic.completion.Clipboard)1 VectorAggregation (org.nd4j.parameterserver.distributed.messages.aggregations.VectorAggregation)1 VectorCompleteMessage (org.nd4j.parameterserver.distributed.messages.complete.VectorCompleteMessage)1