From bd5b23580aa1eacbc98d6fbfd917ff6348db26e5 Mon Sep 17 00:00:00 2001 From: Sudhanshu Singh Date: Fri, 28 Jan 2022 12:02:12 +0530 Subject: [PATCH] solving `ImportError: cannot import name 'int_classes' from 'torch._six' (/home/subh/anaconda3/envs/i3d_svm/lib/python3.9/site-packages/torch/_six.py)` --- gluoncv/torch/data/video_cls/multigrid_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluoncv/torch/data/video_cls/multigrid_helper.py b/gluoncv/torch/data/video_cls/multigrid_helper.py index 05fc2533bf..127c2b5d50 100644 --- a/gluoncv/torch/data/video_cls/multigrid_helper.py +++ b/gluoncv/torch/data/video_cls/multigrid_helper.py @@ -3,8 +3,8 @@ import numpy as np from torch.utils.data import Sampler -from torch._six import int_classes as _int_classes +_int_classes = int __all__ = ['multiGridHelper', 'MultiGridBatchSampler']