Class IndexedTail


  • public class IndexedTail
    extends Object
    • Constructor Detail

      • IndexedTail

        public IndexedTail​(int expectedConsumers)
      • IndexedTail

        public IndexedTail​(int expectedConsumers,
                           boolean allowCollapse,
                           long[] shape)
    • Method Detail

      • put

        public void put​(@NonNull
                        @NonNull INDArray update)
        This mehtod adds update, with optional collapse
        Parameters:
        update -
      • firstNotAppliedIndexEverywhere

        public long firstNotAppliedIndexEverywhere()
      • maxAppliedIndexEverywhere

        public long maxAppliedIndexEverywhere()
      • hasAnything

        public boolean hasAnything()
      • hasAnything

        public boolean hasAnything​(long threadId)
        Returns:
      • drainTo

        public boolean drainTo​(@NonNull
                               @NonNull INDArray array)
      • getGlobalPosition

        protected long getGlobalPosition()
      • getLocalPosition

        protected long getLocalPosition()
      • getDelta

        protected long getDelta()
      • getDelta

        public long getDelta​(long threadId)
      • getLocalPosition

        protected long getLocalPosition​(long threadId)
      • drainTo

        public boolean drainTo​(long threadId,
                               @NonNull
                               @NonNull INDArray array)
      • maintenance

        public void maintenance()
        This method does maintenance of updates within
      • updatesSize

        public int updatesSize()
        This method returns actual number of updates stored within tail
        Returns:
      • isDead

        public boolean isDead()
      • notifyDead

        public void notifyDead()
      • purge

        public void purge()