public class SmartFancyBlockingQueue extends FancyBlockingQueue<INDArray>
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
collapsedMode |
protected int |
decompressionThreshold |
protected char |
paramsOrder |
protected long[] |
paramsShape |
protected EDU.oswego.cs.dl.util.concurrent.ReaderPreferenceReadWriteLock |
smartLock |
backingQueue, barrier, bypassMode, consumers, currentConsumers, currentStep, isDebug, isDone, isFirst, lock, numElementsDrained, numElementsReady, secondary, state, step| Constructor and Description |
|---|
SmartFancyBlockingQueue(int decompressionThreshold,
BlockingQueue<INDArray> queue,
@NonNull INDArray paramsMatrix) |
SmartFancyBlockingQueue(int decompressionThreshold,
@NonNull INDArray paramsMatrix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty() |
INDArray |
poll() |
void |
put(INDArray array) |
protected INDArray |
smartDecompress(INDArray encoded,
INDArray target) |
add, addAll, clear, contains, containsAll, drainTo, drainTo, element, fallbackToSingleConsumerMode, iterator, offer, offer, peek, poll, registerConsumers, remainingCapacity, remove, remove, removeAll, retainAll, size, synchronize, take, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streamprotected final EDU.oswego.cs.dl.util.concurrent.ReaderPreferenceReadWriteLock smartLock
protected int decompressionThreshold
protected AtomicBoolean collapsedMode
protected final long[] paramsShape
protected final char paramsOrder
public SmartFancyBlockingQueue(int decompressionThreshold,
@NonNull
@NonNull INDArray paramsMatrix)
public SmartFancyBlockingQueue(int decompressionThreshold,
BlockingQueue<INDArray> queue,
@NonNull
@NonNull INDArray paramsMatrix)
public boolean isEmpty()
isEmpty in interface Collection<INDArray>isEmpty in class FancyBlockingQueue<INDArray>public void put(INDArray array) throws InterruptedException
put in interface BlockingQueue<INDArray>put in class FancyBlockingQueue<INDArray>InterruptedExceptionCopyright © 2021. All rights reserved.