On this page
torch.jit.wait
torch.jit.wait(future)
[source]-
Forces completion of a
torch.jit.Future[T]
asynchronous task, returning the result of the task. Seefork()
for docs and examples. :param func: an asynchronous task reference, created throughtorch.jit.fork
:type func: torch.jit.Future[T]- Returns:
-
the return value of the the completed task
- Return type:
-
T
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.jit.wait.html