Skip to content

Commit

Permalink
Fix forward compatibility tests & lint error for sharded tensors
Browse files Browse the repository at this point in the history
Summary: as titled

Reviewed By: jarodhou

Differential Revision: D34048926

fbshipit-source-id: 383ba4e0b0b2361a9e98fb48b4c876b88860260a
  • Loading branch information
Sisil Mehta authored and facebook-github-bot committed Feb 10, 2022
1 parent cb6a63c commit 6a8f2be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchrec/distributed/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ class GenericMeta(type):
from torch import nn

# @manual
from torch.distributed._sharded_tensor import ( # noqa
from torch.distributed._shard.sharded_tensor import ( # noqa
Shard,
ShardedTensor,
ShardedTensorMetadata,
TensorProperties,
)

# @manual
from torch.distributed._sharding_spec import ( # noqa
from torch.distributed._shard.sharding_spec import ( # noqa
ShardingSpec,
ShardMetadata,
EnumerableShardingSpec,
Expand Down

0 comments on commit 6a8f2be

Please sign in to comment.