Skip to content

Commit 9a6c9c3

Browse files
committed
Mono import
1 parent 82a05bd commit 9a6c9c3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

torchao/optim/quant_utils.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55
# LICENSE file in the root directory of this source tree.
66
import torch
77
from torch import Tensor
8-
try:
9-
from torch.distributed.tensor import DTensor
10-
except Exception:
11-
try:
12-
from torch.distributed._tensor import DTensor
13-
except Exception:
14-
DTensor = tuple()
8+
from torch.distributed.tensor import DTensor
159

1610

1711
# https://github.com/TimDettmers/bitsandbytes/blob/dada530149212d64d4b69534716202659ef37ec8/bitsandbytes/functional.py#L339-L391

0 commit comments

Comments
 (0)