commit | 75968e2f949a6d8338a3528a241e2638710c99e5 | [log] [tgz] |
---|---|---|
author | FFFrog <ljw1101.vip@gmail.com> | Tue Jan 09 18:37:14 2024 +0000 |
committer | PyTorch MergeBot <pytorchmergebot@users.noreply.github.com> | Tue Jan 09 18:37:22 2024 +0000 |
tree | 1e50806e62efa99abce400a13894e66e45da03f2 | |
parent | 0dd5deecedd136852c7ccc81630eaefbebe5be29 [diff] |
Optimize operator (#117017) As the title stated. Pull Request resolved: https://github.com/pytorch/pytorch/pull/117017 Approved by: https://github.com/Skylion007
diff --git a/torch/csrc/jit/runtime/operator.h b/torch/csrc/jit/runtime/operator.h index 681a5a8..bcab476 100644 --- a/torch/csrc/jit/runtime/operator.h +++ b/torch/csrc/jit/runtime/operator.h
@@ -80,8 +80,7 @@ public: Operator(c10::OperatorHandle opHandle, Operation operation) - : op_(C10Operator( - C10Operator{std::move(opHandle), std::move(operation)})) {} + : op_(C10Operator{std::move(opHandle), std::move(operation)}) {} Operator( std::string schema,