File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 33import os .path
44import numpy as np
55import pickle
6+ import torch
67from typing import Any , Callable , Optional , Tuple
78
89from .vision import VisionDataset
@@ -58,6 +59,7 @@ def __init__(
5859
5960 super (CIFAR10 , self ).__init__ (root , transform = transform ,
6061 target_transform = target_transform )
62+ torch ._C ._log_api_usage_once (f"torchvision.datasets.{ self .__class__ .__name__ } " )
6163
6264 self .train = train # training set or test set
6365
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ def __init__(
7777 ) -> None :
7878 super (MNIST , self ).__init__ (root , transform = transform ,
7979 target_transform = target_transform )
80+ torch ._C ._log_api_usage_once (f"torchvision.datasets.{ self .__class__ .__name__ } " )
8081 self .train = train # training set or test set
8182
8283 if self ._check_legacy_exist ():
You can’t perform that action at this time.
0 commit comments