diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-07 20:19:36 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-07 20:23:12 +0800 |
commit | 46e68c1d0168816107fd9997e1d948d3f403f5ee (patch) | |
tree | fa23fc3f0adb60a2b19b420223c0f7827b7eec4e /utils/sampler.py | |
parent | 71a052ba1349392a5c1e27542ecf38d22771bf10 (diff) |
Type hint for python version lower than 3.9
Diffstat (limited to 'utils/sampler.py')
-rw-r--r-- | utils/sampler.py | 3 |
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 |