lamp.data.BatchStream$
See theBatchStream companion trait
object BatchStream
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BatchStream.type
Members list
Type members
Classlikes
object StagedLoader
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StagedLoader.type
Value members
Concrete methods
def fromFullBatch(features: STen, targets: STen, device: Device): BatchStream[(Variable, STen), Boolean, Unit]
def fromFunction[A, C](numBatches: Int, makeNonEmptyBatch: Device => Resource[IO, StreamControl[(A, STen)]]): BatchStream[(A, STen), Int, Unit]
def fromFunctionWithBuffers[A, C](numBatches: Int, allocateBuffers1: Device => Resource[IO, C])(makeNonEmptyBatch: (C, Device) => Resource[IO, StreamControl[A]]): BatchStream[A, Int, C]
def fromIndices[A, C](indices: Array[Array[Int]])(makeNonEmptyBatch: (Array[Int], Device) => Resource[IO, StreamControl[(A, STen)]]): BatchStream[(A, STen), Int, Unit]
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]
def minibatchesFromFull(minibatchSize: Int, dropLast: Boolean, features: STen, target: STen, rng: Random): BatchStream[(Variable, STen), Int, BufferPair]
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]
In this article