We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82a05bd commit 9a6c9c3Copy full SHA for 9a6c9c3
torchao/optim/quant_utils.py
@@ -5,13 +5,7 @@
5
# LICENSE file in the root directory of this source tree.
6
import torch
7
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()
+from torch.distributed.tensor import DTensor
15
16
17
# https://github.com/TimDettmers/bitsandbytes/blob/dada530149212d64d4b69534716202659ef37ec8/bitsandbytes/functional.py#L339-L391
0 commit comments