Class WaitForCompletion
Suspends the coroutine execution until worker has completed execution on a device and
contents of the specified tensor are downloaded to the main CPU memory.
WaitForCompletion is not necessary and should NOT be used, unless tensor contents are accessed on CPU!
WaitForCompletion can only be used with a yield statement in coroutines.
Inherited Members
UnityEngine.CustomYieldInstruction.MoveNext()
UnityEngine.CustomYieldInstruction.Reset()
UnityEngine.CustomYieldInstruction.Current
Namespace: Unity.Barracuda
Syntax
public class WaitForCompletion : CustomYieldInstruction, IEnumerator
Constructors
WaitForCompletion(Tensor)
Suspends the coroutine execution until worker has completed execution on a device and
contents of the specified tensor are downloaded to the main CPU memory.
tensor that will be downloaded once worker execution is finished.
Declaration
public WaitForCompletion(Tensor tensor)
Parameters
| Type | Name | Description |
|---|---|---|
| Tensor | tensor |
Properties
keepWaiting
Declaration
public override bool keepWaiting { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |