Paddle [需求] Layer.set_state_dict 支持返回参数加载情况

dw1jzc5e  于 5个月前  发布在  其他
关注(0)|答案(3)|浏览(44)

需求描述 Feature Description

Layer.set_state_dict
https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/fluid/dygraph/layers.py#L1429-L1450

期望对齐 torch
https://github.com/pytorch/pytorch/blob/7c7eb351c306e1db683dc4318288fd8479f6ef36/torch/nn/modules/module.py#L1433-L1455

返回load时候,缺失和多余的 keys

Returns:
            ``NamedTuple`` with ``missing_keys`` and ``unexpected_keys`` fields:
                * **missing_keys** is a list of str containing the missing keys
                * **unexpected_keys** is a list of str containing the unexpected keys

替代实现 Alternatives

No response

jaxagkaj

jaxagkaj1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看 官网API文档常见问题历史IssueAI社区 来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

ttcibm8c

ttcibm8c2#

@ZHUI 是说我们的 Layer. set_state_dict 没有返回值对吧,这个需求可以支持

相关问题