Imp.Training.FastSlow.Lookahead (Imp v0.5.0)

Copy Markdown View Source

Prefetched minibatch window and deterministic dataset progress.

Summary

Types

minibatch()

@type minibatch() :: map()

t()

@type t() :: %Imp.Training.FastSlow.Lookahead{
  checksum: String.t(),
  consumed_steps: non_neg_integer(),
  cycle: non_neg_integer(),
  dataset_cursor: non_neg_integer(),
  digest: String.t(),
  minibatches: [minibatch()]
}

Functions

consume!(lookahead)

@spec consume!(t()) :: t()

new!(cycle, dataset_cursor, minibatches)

@spec new!(non_neg_integer(), non_neg_integer(), [map()]) :: t()

validate!(lookahead, expected_t \\ nil)

@spec validate!(t(), pos_integer() | nil) :: t()