[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
This commit is contained in:
Max Podkorytov
2023-03-08 07:38:21 +00:00
committed by PyTorch MergeBot
parent 3ce1e15cf7
commit b90a9c7db2

View File

@ -1312,7 +1312,7 @@ c10::intrusive_ptr<c10::ivalue::Future> BlockRunner::run_impl_async(
const KeywordArgs& kwargs) { const KeywordArgs& kwargs) {
// run the graph inline in the caller thread. Async ops will be // run the graph inline in the caller thread. Async ops will be
// executed on taskLauncher attached to the metadata of ProcessedNodes // executed on taskLauncher attached to the metadata of ProcessedNodes
c10::IValue output = run_impl(args, kwargs); c10::IValue output = run_impl(std::forward<IValueList>(args), kwargs);
// If the output is of type future, return it // If the output is of type future, return it
if (output.isFuture()) { if (output.isFuture()) {