module.state_dict()
. You can then save it using torch.save
. Modules support loading of state using load_state_dict
nn.Module
to export its parameters, registered buffers, etc to a dictionary of values?
Answer
module.state_dict()
. You can then save it using torch.save
. Modules support loading of state using load_state_dict
Relevant part of lecture