StateIO

lamp.data.StateIO
object StateIO

Helpers to read and write training loop state

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
StateIO.type

Members list

Value members

Concrete methods

def readFromFile(file: File, device: Device)(implicit scope: Scope): LoopState

Reads LoopState from file

Reads LoopState from file

Returned value may be passed to training loop constructors to initialize loop state

Value parameters

device

device onto which to load tensors

file

file on disk

Attributes

Returns

LoopState

def reduceLROnPlateauStateFromFile(file: File): IO[ReduceLROnPlateauState]
def reduceLROnPlateauStateToFile(file: File): ReduceLROnPlateauState => IO[Unit]
def stateToFile(file: File): LoopState => IO[Unit]

Returns a function which returns an IO writing the loop state to file

Returns a function which returns an IO writing the loop state to file

Attributes

def writeToFile(file: File, state: LoopState, bufferSize: Int): Unit

Writes loop state into file

Writes loop state into file

Attributes