Rate this Page

torch.jit.wait#

torch.jit.wait(future)[source]#

Force completion of atorch.jit.Future[T] asynchronous task, returning the result of the task.

Seefork() for docs and examples.:param future: an asynchronous task reference, created throughtorch.jit.fork:type future: torch.jit.Future[T]

Returns

the return value of the completed task

Return type

T