WeightsEnum.get_state_dict: fix return type#9286
Conversation
Signed-off-by: Adam J. Stewart <ajstewart426@gmail.com>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9286
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Thanks for the PR, CI has been disabled so I can't validate the changes for now - feel free to ping again in a few days. Out of curiosity though, what's the actual value of changing the type from |
|
Mapping supports |
|
@NicolasHug anything else needed to merge this PR? |
|
Hey @NicolasHug! You merged this PR, but no labels were added. |
|
Looks like this didn't make it into 0.25.0. Will it automatically be added to the next release? |
|
Yes, it'll be part of the next one |
https://docs.pytorch.org/docs/stable/hub.html#torch.hub.load_state_dict_from_url returns
dict[str, Any], which is more specific thanMapping[str, Any].