Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 3bdfde2

Browse files
committed
fix(dtensor): support torch dispatch mode exclude
support torch dispatch python mode to tls excluded which will cause dispatch hang
1 parent 86190b6 commit 3bdfde2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cc/torchdistx/deferred_init.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ void runDeferredInitHandler(const OperatorHandle& op, DispatchKeySet key_set, St
944944
}
945945

946946
void enableDeferredInitHandler(bool value) noexcept {
947-
c10::impl::tls_set_dispatch_key_included(DispatchKey::DeferredInit, value);
947+
c10::impl::tls_set_dispatch_key_excluded(DispatchKey::DeferredInit, value);
948948
}
949949

950950
bool isDeferredInitEnabled() noexcept {

0 commit comments

Comments
 (0)