summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-07 20:19:36 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-07 20:23:12 +0800
commit46e68c1d0168816107fd9997e1d948d3f403f5ee (patch)
treefa23fc3f0adb60a2b19b420223c0f7827b7eec4e /utils
parent71a052ba1349392a5c1e27542ecf38d22771bf10 (diff)
Type hint for python version lower than 3.9
Diffstat (limited to 'utils')
-rw-r--r--utils/sampler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/sampler.py b/utils/sampler.py
index c1bf3dd..0977f94 100644
--- a/utils/sampler.py
+++ b/utils/sampler.py
@@ -1,6 +1,5 @@
import random
-from collections import Iterator
-from typing import Union, Tuple
+from typing import Union, Tuple, Iterator
import numpy as np
from torch.utils import data