Skip to content

Commit

Permalink
Fixing broken unit tests regarding module compatibility (pytorch#2651)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#2651

Fixing unit test breakage in the task: T211156854

Differential Revision: D67581406

fbshipit-source-id: 7e25585e23f6ec3f4924c8ebdaf82ca1ea0d4294
  • Loading branch information
faran928 authored and facebook-github-bot committed Dec 23, 2024
1 parent efca1d6 commit 5f607ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torchrec/distributed/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import torch
from torch import distributed as dist, nn
from torch.autograd.profiler import record_function
from torch.distributed._shard.sharding_spec.api import EnumerableShardingSpec
from torch.distributed._shard.sharding_spec import EnumerableShardingSpec
from torch.distributed._tensor import DTensor
from torch.nn.parallel import DistributedDataParallel
from torchrec.distributed.embedding_sharding import (
Expand Down
2 changes: 1 addition & 1 deletion torchrec/distributed/quant_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
IntNBitTableBatchedEmbeddingBagsCodegen,
)
from torch import nn
from torch.distributed._shard.sharding_spec.api import EnumerableShardingSpec
from torch.distributed._shard.sharding_spec import EnumerableShardingSpec
from torchrec.distributed.embedding import (
create_sharding_infos_by_sharding_device_group,
EmbeddingShardingInfo,
Expand Down

0 comments on commit 5f607ff

Please sign in to comment.