Skip to content

Commit beebe83

Browse files
aliafzalmeta-codesync[bot]
authored andcommitted
unused import [5/n] (#3413)
Summary: Pull Request resolved: #3413 https://www.flake8rules.com/rules/F401.html Reviewed By: TroyGarden Differential Revision: D83739291 fbshipit-source-id: 37fb0570f0e82b34aa7324f2054cad316f0674ee
1 parent fe7479b commit beebe83

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

torchrec/distributed/benchmark/benchmark_zch/benchmark_zch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
import argparse
1010
import csv
1111
import json
12-
import logging
1312
import multiprocessing
1413
import os
1514
import sys
1615
import time
1716

18-
from typing import cast, Dict, Iterator, List, Optional
17+
from typing import Dict, List, Optional
1918

2019
import numpy as np
2120

torchrec/distributed/planner/planners.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
from time import perf_counter
1515
from typing import Callable, cast, Dict, List, Optional, Tuple, Union
1616

17-
import torch
18-
1917
import torch.distributed as dist
2018
from torch import nn
2119
from torchrec.distributed.collective_utils import invoke_on_rank_and_broadcast_result
@@ -32,7 +30,7 @@
3230
GridSearchProposer,
3331
UniformProposer,
3432
)
35-
from torchrec.distributed.planner.stats import EmbeddingStats, NoopEmbeddingStats
33+
from torchrec.distributed.planner.stats import EmbeddingStats
3634
from torchrec.distributed.planner.storage_reservations import (
3735
HeuristicalStorageReservation,
3836
)

torchrec/distributed/sharding/twrw_sharding.py

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

1010
import itertools
1111
import math
12-
from typing import Any, cast, Dict, List, Optional, Tuple, TypeVar, Union
12+
from typing import Any, cast, Dict, List, Optional, Tuple, TypeVar
1313

1414
import torch
1515
import torch.distributed as dist

0 commit comments

Comments
 (0)