replace torch.six attribution for pytorch maskrcnn model
# limitations under the License.
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
+import sys
-if torch._six.PY37:
+if sys.version_info[0] == 3 and sys.version_info[1] >= 7:
import importlib
import importlib.util
import sys
