Skip to content

Commit 80286dc

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
fbcode//monarch/python/monarch/common:_C (#1620)
Summary: Pull Request resolved: #1620 Reviewed By: thedavekwon Differential Revision: D85037210
1 parent eca0bc1 commit 80286dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/monarch/common/mock_cuda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ std::mutex patchedMutex;
439439

440440
void doPatch(const char* name, void** realFns, void* toPatch, void** ourFns) {
441441
std::lock_guard<std::mutex> guard(patchedMutex);
442-
if (patched.count(toPatch)) {
442+
if (patched.contains(toPatch)) {
443443
return;
444444
}
445445
patched.emplace(toPatch);

0 commit comments

Comments
 (0)