Skip to content

Commit 91b4257

Browse files
aliafzalmeta-codesync[bot]
authored andcommitted
unused import [1/n] (#3412)
Summary: Pull Request resolved: #3412 https://www.flake8rules.com/rules/F401.html Reviewed By: TroyGarden Differential Revision: D83737895 fbshipit-source-id: 2ebe5f0200224804506d73536100a4c5c75260e4
1 parent 92278a0 commit 91b4257

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

torchrec/distributed/sharding/tw_sharding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# pyre-strict
99

10-
from typing import Any, Callable, cast, Dict, List, Optional, TypeVar, Union
10+
from typing import Any, Callable, cast, Dict, List, Optional, TypeVar
1111

1212
import torch
1313
import torch.distributed as dist

torchrec/metrics/metric_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import logging
1414
import time
1515
from collections import defaultdict
16-
from typing import Any, Dict, List, Optional, Sequence, Type, TypeVar, Union
16+
from typing import Any, Dict, List, Optional, Type, TypeVar, Union
1717

1818
import torch
1919
import torch.distributed as dist

torchrec/modules/mc_adapter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
# LICENSE file in the root directory of this source tree.
77

88
# pyre-strict
9-
import sys
10-
from typing import Dict, Iterator, List, Optional, Union
9+
from typing import Dict, Iterator, List, Optional
1110

1211
import torch
1312
import torch.nn as nn
@@ -29,7 +28,6 @@
2928
from torchrec.modules.mc_modules import (
3029
DistanceLFU_EvictionPolicy,
3130
ManagedCollisionCollection,
32-
ManagedCollisionModule,
3331
MCHManagedCollisionModule,
3432
)
3533
from torchrec.sparse.jagged_tensor import JaggedTensor, KeyedJaggedTensor

0 commit comments

Comments
 (0)