Unverified Commit 8b6bba54 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Fix `ViTMSNForImageClassification` doctest (#19275)


Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent d92e22d1
...@@ -632,7 +632,7 @@ class ViTMSNForImageClassification(ViTMSNPreTrainedModel): ...@@ -632,7 +632,7 @@ class ViTMSNForImageClassification(ViTMSNPreTrainedModel):
>>> from PIL import Image >>> from PIL import Image
>>> import requests >>> import requests
>>> torch.manual_seed(2) >>> torch.manual_seed(2) # doctest: +IGNORE_RESULT
>>> url = "http://images.cocodataset.org/val2017/000000039769.jpg" >>> url = "http://images.cocodataset.org/val2017/000000039769.jpg"
>>> image = Image.open(requests.get(url, stream=True).raw) >>> image = Image.open(requests.get(url, stream=True).raw)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment