From a1174dbc5070ec63ab2002b767a1037ff8b48c72 Mon Sep 17 00:00:00 2001 From: Ailing Zhang Date: Wed, 17 Apr 2019 23:38:26 -0700 Subject: [PATCH] fix hub doc format Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/19396 Differential Revision: D14993859 Pulled By: ailzhang fbshipit-source-id: bdf94e54ec35477cfc34019752233452d84b6288 --- docs/source/hub.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/hub.rst b/docs/source/hub.rst index 7419753..67c098d 100644 --- a/docs/source/hub.rst +++ b/docs/source/hub.rst @@ -52,6 +52,7 @@ You can see the full script in handles ``pretrained``, alternatively you can put the following logic in the entrypoint definition. :: + if pretrained: # For checkpoint saved in local repo model.load_state_dict() -- 2.7.4