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.
Declaration
public WaitForCompletion(Tensor tensor)
Parameters
Type | Name | Description |
---|---|---|
Tensor | tensor |
|
Properties
keepWaiting
Returns true
while results are not yet ready
Declaration
public override bool keepWaiting { get; }
Property Value
Type | Description |
---|---|
Boolean |