File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ def list(
211211 entrypoints: A list of available entrypoint names.
212212
213213 Examples:
214- .. code-block:: python
214+ .. code-block:: pycon
215215
216216 >>> import paddle
217217
@@ -263,7 +263,7 @@ def help(
263263 docs
264264
265265 Examples:
266- .. code-block:: python
266+ .. code-block:: pycon
267267
268268 >>> import paddle
269269
@@ -313,7 +313,7 @@ def load(
313313 paddle model.
314314
315315 Examples:
316- .. code-block:: python
316+ .. code-block:: pycon
317317
318318 >>> import paddle
319319 >>> paddle.hub.load('lyuwenyu/paddlehub_demo:main', model='MM', source='github')
@@ -361,11 +361,16 @@ def load_state_dict_from_url(
361361 Any: A target object that can be used in Paddle.
362362
363363 Examples:
364- .. code-block:: python
364+ .. code-block:: pycon
365365
366+ >>> # doctest: +TIMEOUT(60)
366367 >>> import paddle
367- >>> paddle.hub.load_state_dict_from_url(url='https://paddle-hapi.bj.bcebos.com/models/resnet18.pdparams', model_dir="./paddle/test_load_from_url")
368- >>> paddle.hub.load_state_dict_from_url(url='https://x2paddle.bj.bcebos.com/resnet18.zip', model_dir="./paddle/test_file_is_zip")
368+ >>> paddle.hub.load_state_dict_from_url(
369+ ... url='https://paddle-hapi.bj.bcebos.com/models/resnet18.pdparams', model_dir="./paddle/test_load_from_url"
370+ ... )
371+ >>> paddle.hub.load_state_dict_from_url(
372+ ... url='https://x2paddle.bj.bcebos.com/resnet18.zip', model_dir="./paddle/test_file_is_zip"
373+ ... )
369374 """
370375 if model_dir is None :
371376 hub_dir = get_dir ()
You can’t perform that action at this time.
0 commit comments