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;
}
Aggregations