forked from nimarb/pytorch_influence_functions
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
In s_test, params, names = make_functional(model)
will delete the paramters of the model,but I find in function f load_weights(model, names, new_params)
can not load the params. and load_weights(model, names, params, as_params=True)
can load the model weights.But when i use this ,the hvp will report the error: RuntimeError: The output of the user-provided function is independent of input 0. This is not allowed in strict mode.
Although use load_weights(model, names, new_params)
can run, the paramters are not be loaded,is this reasonable?
Metadata
Metadata
Assignees
Labels
No labels