Class WorkerExtensions
IWorker interface extensions
Inherited Members
Namespace: Unity.Barracuda
Assembly: Unity.Barracuda.dll
Syntax
public static class WorkerExtensions
Methods
CopyOutput(IWorker)
Returns CPU copy of the first output tensor. This method is a blocking call and will wait until network execution is completed. Useful when network has only one output.
Declaration
public static Tensor CopyOutput(this IWorker worker)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
Returns
| Type | Description |
|---|---|
| Tensor | output Tensor |
CopyOutput(IWorker, string)
Returns CPU copy of output tensor by name. This method is a blocking call and will wait until network execution is completed.
Declaration
public static Tensor CopyOutput(this IWorker worker, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| string | name | output Tensor name |
Returns
| Type | Description |
|---|---|
| Tensor | output Tensor |