Learn R Programming

geodl (version 0.3.1)

callback_save_model_state_dict: callback_save_model_state_dict

Description

Save the model state dictionary to disk at the end of each epoch as a .pt file. For use within luz training loop.

Usage

callback_save_model_state_dict(save_dir = ".", prefix = "model_epoch")

Value

No R object is returned. The state dictionary is saved to disk as a .pt file.

Arguments

save_dir

path and directory to save state dictionary files

prefix

prefix for file name. Default is "model_epoch". The suffix is the epoch number.