Update hub.load() signature to avoid polluting kwargs param (#63755)
authorNicolas Hug <nicolashug@fb.com>
Thu, 2 Sep 2021 10:45:06 +0000 (03:45 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 2 Sep 2021 11:32:22 +0000 (04:32 -0700)
commit1c735768ede21a60ad4f6ed9565a21d9b4f5bc92
treed07b4011de4f7029c2fe713c55c3e8c401eb34d1
parent6db8f7a70920f91418078fe09477eed0b0adefdb
Update hub.load() signature to avoid polluting kwargs param (#63755)

Summary:
This PR addresses an old comment about Python2 EOL, directly putting some parameters in the function signature instead of in a `**kargs` dict.

I believe the changes are fully backward compatible.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63755

Reviewed By: zou3519

Differential Revision: D30695634

Pulled By: NicolasHug

fbshipit-source-id: 398f347c5a04bfb58e77e46773a869cb9d0eb225
torch/hub.py