From b90a9c7db2bfcbdaf6910f6eefea8618a5cb53cb Mon Sep 17 00:00:00 2001 From: Max Podkorytov Date: Wed, 8 Mar 2023 07:38:21 +0000 Subject: [PATCH] [static-runtime] fix one forwarding usage (#96271) Summary: as titled Test Plan: ci Differential Revision: D43897369 Pull Request resolved: https://github.com/pytorch/pytorch/pull/96271 Approved by: https://github.com/davidberard98 --- torch/csrc/jit/runtime/static/impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch/csrc/jit/runtime/static/impl.cpp b/torch/csrc/jit/runtime/static/impl.cpp index fb2748a8fb0..1530ca5eebc 100644 --- a/torch/csrc/jit/runtime/static/impl.cpp +++ b/torch/csrc/jit/runtime/static/impl.cpp @@ -1312,7 +1312,7 @@ c10::intrusive_ptr BlockRunner::run_impl_async( const KeywordArgs& kwargs) { // run the graph inline in the caller thread. Async ops will be // executed on taskLauncher attached to the metadata of ProcessedNodes - c10::IValue output = run_impl(args, kwargs); + c10::IValue output = run_impl(std::forward(args), kwargs); // If the output is of type future, return it if (output.isFuture()) {