Update namespaces inside torch.utils.data to the latest. (#13167)

* Update torch.utils.data namespaces to the latest.

* Format

* Update Dataloader.

* Style
This commit is contained in:
Allan Lin
2021-08-19 20:29:51 +08:00
committed by GitHub
parent 1fec32adc6
commit 91ff480e26
24 changed files with 41 additions and 44 deletions

View File

@@ -19,7 +19,7 @@ import copy
from collections import defaultdict
import numpy as np
from torch.utils.data.sampler import BatchSampler, Sampler
from torch.utils.data import BatchSampler, Sampler
from utils import logger