mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
3ce1e15cf7
commit
b90a9c7db2
@ -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()) {
|
||||||
|
Reference in New Issue
Block a user