Skip to content
Closed
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: 2 additions & 1 deletion torchrec/distributed/train_pipeline/train_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
except ImportError:
logger.warning("torchrec_use_sync_collectives is not available")

torch.ops.import_module("fbgemm_gpu.sparse_ops")
if not torch._running_with_deploy():
torch.ops.import_module("fbgemm_gpu.sparse_ops")


class ModelDetachedException(Exception):
Expand Down
Loading