Skip to content

some question about s_test  #3

@gaoyi-byte

Description

@gaoyi-byte

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions