fix hub doc format
authorAiling Zhang <ailzhang@fb.com>
Thu, 18 Apr 2019 06:38:26 +0000 (23:38 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 18 Apr 2019 06:43:56 +0000 (23:43 -0700)
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

index 7419753..67c098d 100644 (file)
@@ -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(<path_to_saved_checkpoint>)