mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-07 01:50:04 +08:00
[codemod][llvm15] LLVM-15 fixes for caffe2/test/cpp/jit/test_module_api.cpp (#89938)
Summary: This fixes issues which block `caffe2/test/cpp/jit/test_module_api.cpp` from compiling with LLVM-15. Test Plan: Sandcastle Reviewed By: meyering Differential Revision: D41603454 Pull Request resolved: https://github.com/pytorch/pytorch/pull/89938 Approved by: https://github.com/soumith
This commit is contained in:
committed by
PyTorch MergeBot
parent
d6c8603b98
commit
a580a63448
@ -66,7 +66,7 @@ TEST(ModuleAPITest, MethodRunAsync) {
|
||||
mtx.lock();
|
||||
++counter;
|
||||
mtx.unlock();
|
||||
at::launch(move(f));
|
||||
at::launch(std::move(f));
|
||||
};
|
||||
|
||||
auto method = m.get_method("forward");
|
||||
|
||||
Reference in New Issue
Block a user