mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Summary: Implementing #10540. Pull Request resolved: https://github.com/pytorch/pytorch/pull/11515 Reviewed By: apaszke Differential Revision: D9771045 Pulled By: jeffreyksmithjr fbshipit-source-id: 85ea39abaa9b465805a969f122b626b11fc85ef6
8 lines
164 B
Python
8 lines
164 B
Python
from six import PY2, PY3
|
|
|
|
if PY2:
|
|
import collections
|
|
container_abcs = collections
|
|
elif PY3:
|
|
import collections.abc
|
|
container_abcs = collections.abc
|