Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions torchrec/distributed/embeddingbag.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,8 @@ def __init__(
if env.process_group and dist.get_backend(env.process_group) != "fake":
self._initialize_torch_state()

if module.device not in ["meta", "cpu"] and module.device.type not in [
if module.device not in ["meta"] and module.device.type not in [
"meta",
"cpu",
]:
self.load_state_dict(module.state_dict(), strict=False)

Expand Down
Loading