Skip to content

Commit

Permalink
Fix OSS pyre
Browse files Browse the repository at this point in the history
Summary: OSS CI Pyre lint failing

Differential Revision: D57350370
  • Loading branch information
sarckk authored and facebook-github-bot committed May 14, 2024
1 parent 7b8ace3 commit 439a546
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions torchrec/distributed/benchmark/benchmark_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,7 @@ def trace_handler(prof) -> None:

with torch.profiler.profile(
activities=[
# pyre-fixme[16]: Module `profiler` has no attribute `ProfilerActivity`.
torch.profiler.ProfilerActivity.CPU,
# pyre-fixme[16]: Module `profiler` has no attribute `ProfilerActivity`.
torch.profiler.ProfilerActivity.CUDA,
],
record_shapes=True,
Expand Down
2 changes: 0 additions & 2 deletions torchrec/distributed/sharding/rw_sequence_sharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ def create_input_dist(
shard_split_offsets.append(table.global_metadata.size[0])
emb_sharding.extend([shard_split_offsets] * len(table.embedding_names))

# pyre-fixme[7]: Expected `BaseSparseFeaturesDist[KJTList]` but got
# `InferCPURwSparseFeaturesDist`.
return InferCPURwSparseFeaturesDist(
world_size=self._world_size,
num_features=num_features,
Expand Down
2 changes: 0 additions & 2 deletions torchrec/distributed/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,6 @@ def __init__(
torch._C._log_api_usage_once(f"torchrec.distributed.{self.__class__.__name__}")
self._qcomm_codecs_registry = qcomm_codecs_registry

# pyre-fixme[56]: Pyre doesn't yet support decorators with ParamSpec applied to
# generic functions Please add # pyre-ignore[56] to `abc.abstractclassmethod`.
@abc.abstractclassmethod
# pyre-ignore [3]
def shard(
Expand Down

0 comments on commit 439a546

Please sign in to comment.