Don't use torch._six (#2775)

* Don't use `torch._six`

This is a private API which is gone after https://github.com/pytorch/pytorch/pull/94709

* Update common.py
This commit is contained in:
Nikita Shulga
2023-02-16 17:22:45 -08:00
committed by GitHub
parent a88bc828d5
commit 01066152f1
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ from typing import Callable, Dict, List, Optional, Union
import torch
import torch.distributed as dist
from torch._six import inf
from torch import inf
from torch.nn.parameter import Parameter
from colossalai.constants import IS_TENSOR_PARALLEL, NUM_PARTITIONS, TENSOR_PARALLEL_ATTRIBUTES