torch:set-field
(torch:set-field module name value)
Sets the module's named field (adding it when it is new) and returns the module. Replacing a parameter this way re-binds a layer to a given set of weights -- which is what makes a layer's output reproducible in a test or an example.