Class WorkerExtensions
Inheritance
WorkerExtensions
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 |
|
Returns
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
Returns
ExecuteAndWaitForCompletion(IWorker, IDictionary<String, Tensor>)
Schedules network execution in one go and waits for result to be available.
This method supports multiple inputs.
Declaration
public static Tensor ExecuteAndWaitForCompletion(this IWorker worker, IDictionary<string, Tensor> inputs)
Parameters
Returns
ExecuteAndWaitForCompletion(IWorker, Tensor)
Schedules network execution in one go and waits for result to be available.
Useful when network has only one input and caller does not need to know input's name.
Declaration
public static Tensor ExecuteAndWaitForCompletion(this IWorker worker, Tensor input)
Parameters
Returns