torch.jit.wait — PyTorch 2.7 documentation (original) (raw)
torch.jit.wait(future)[source][source]¶
Force completion of a torch.jit.Future[T] asynchronous task, returning the result of the task.
See fork() for docs and examples. :param future: an asynchronous task reference, created through torch.jit.fork:type future: torch.jit.Future[T]
Returns
the return value of the completed task
Return type
T
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.