Packages

object BatchStream

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BatchStream
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def fromFullBatch(features: STen, targets: STen, device: Device): BatchStream[(Variable, STen), Boolean, Unit]

    Create a stream of a single full batch of features and targets

  9. def fromFunction[A, C](numBatches: Int, makeNonEmptyBatch: (Device) => Resource[IO, StreamControl[(A, STen)]]): BatchStream[(A, STen), Int, Unit]
  10. def fromFunctionWithBuffers[A, C](numBatches: Int, allocateBuffers1: (Device) => Resource[IO, C])(makeNonEmptyBatch: (C, Device) => Resource[IO, StreamControl[A]]): BatchStream[A, Int, C]
  11. def fromIndices[A, C](indices: Array[Array[Int]])(makeNonEmptyBatch: (Array[Int], Device) => Resource[IO, StreamControl[(A, STen)]]): BatchStream[(A, STen), Int, Unit]

    Creates a stream from an array of indices and a lambda using a subset of those indexes to allocate the batch

    Creates a stream from an array of indices and a lambda using a subset of those indexes to allocate the batch

    The indices refer to some other external data structure

  12. def fromIndicesWithBuffers[A, C](indices: Array[Array[Int]], allocateBuffers1: (Device) => Resource[IO, C])(makeNonEmptyBatch: (Array[Int], C, Device) => Resource[IO, StreamControl[A]]): BatchStream[A, Int, C]

    Creates a stream from an array of indices and a lambda using a subset of those indexes to allocate the batch

    Creates a stream from an array of indices and a lambda using a subset of those indexes to allocate the batch

    The indices refer to some other external data structure

  13. def fromVector[A](resources: Vector[Resource[IO, StreamControl[A]]]): BatchStream[A, Int, Unit]

    Creates a stream from a vector of items

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def minibatchesFromFull(minibatchSize: Int, dropLast: Boolean, features: STen, target: STen, rng: Random): BatchStream[(Variable, STen), Int, BufferPair]

    Create a stream from the first dimension of a tensor

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. def single[A](resource: Resource[IO, StreamControl[A]]): BatchStream[A, Boolean, Unit]

    Creates a stream from a single item

  22. def stagedFromIndices[A, B, C](indices: Array[Array[Int]], bucketSize: Int, allocateBuffers0: (Device) => Resource[IO, C])(loadInstancesToStaging: (Array[Int]) => Resource[IO, B], makeNonEmptyBatch: (B, Array[Int], C, Device) => Resource[IO, StreamControl[A]]): BatchStream[A, State[A, B], C]

    A two stage data loader which first loads items of type B, then from B loads items of type A

    A two stage data loader which first loads items of type B, then from B loads items of type A

    Makes sense if loading B is quicker than loading an equivalent amount of A e.g. because B is a preformed batch of A-s on secondary medium

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped