Commit 808e93c5 authored by yizhou-wang's avatar yizhou-wang
Browse files

Update collate_functions.py for pytorch 1.9

parent a2321e7f
import numpy as np import numpy as np
import torch import torch
import re import re
from torch._six import container_abcs, string_classes, int_classes try:
from torch._six import container_abcs, string_classes, int_classes
except:
import collections.abc as container_abcs
string_classes = str
int_classes = int
np_str_obj_array_pattern = re.compile(r'[SaUO]') np_str_obj_array_pattern = re.compile(r'[SaUO]')
default_collate_err_msg_format = ( default_collate_err_msg_format = (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment