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.
Namespace: Unity.Barracuda
Syntax
public class WaitForCompletion : CustomYieldInstruction
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 |