Class DeprecatedWorkerExtensions
Deprecated IWorker extensions
Namespace: Unity.Barracuda
Syntax
public static class DeprecatedWorkerExtensions : object
Methods
AddInput(IWorker, String, Tensor)
Deprecated. Use SetInput instead
Declaration
public static void AddInput(this IWorker worker, string name, Tensor x)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| String | name | input Tensor name |
| Tensor | x | input Tensor |
AddInput(IWorker, Tensor)
Deprecated. Use SetInput instead
Declaration
public static void AddInput(this IWorker worker, Tensor x)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| Tensor | x | input Tensor |
ExecuteAndWaitForCompletion(IWorker, IDictionary<String, Tensor>)
Deprecated. Use Execute followed by CopyOutput and PrepareCacheForAccess instead
Declaration
public static Tensor ExecuteAndWaitForCompletion(this IWorker worker, IDictionary<string, Tensor> inputs)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| IDictionary<String, Tensor> | inputs | input Tensor Dictionary |
Returns
| Type | Description |
|---|---|
| Tensor | output Tensor |
ExecuteAndWaitForCompletion(IWorker, Tensor)
Deprecated. Use Execute followed by CopyOutput and PrepareCacheForAccess instead
Declaration
public static Tensor ExecuteAndWaitForCompletion(this IWorker worker, Tensor input)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| Tensor | input | input Tensor |
Returns
| Type | Description |
|---|---|
| Tensor | output Tensor |
ExecuteAsync(IWorker)
Deprecated. Use StartManualSchedule instead
Declaration
public static IEnumerator ExecuteAsync(this IWorker worker)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
Returns
| Type | Description |
|---|---|
| IEnumerator | Manual schedule iterator |
ExecuteAsync(IWorker, IDictionary<String, Tensor>)
Deprecated. Use StartManualSchedule instead
Declaration
public static IEnumerator ExecuteAsync(this IWorker worker, IDictionary<string, Tensor> inputs)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| IDictionary<String, Tensor> | inputs | input Tensor Dictionary |
Returns
| Type | Description |
|---|---|
| IEnumerator | Manual schedule iterator |
ExecuteAsync(IWorker, Tensor)
Deprecated. Use StartManualSchedule instead
Declaration
public static IEnumerator ExecuteAsync(this IWorker worker, Tensor input)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| Tensor | input | input Tensor |
Returns
| Type | Description |
|---|---|
| IEnumerator | Manual schedule iterator |
Fetch(IWorker)
Deprecated. Use CopyOutput instead
Declaration
public static Tensor Fetch(this IWorker worker)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
Returns
| Type | Description |
|---|---|
| Tensor | copy of the output Tensor |
Fetch(IWorker, String)
Deprecated. Use CopyOutput instead
Declaration
public static Tensor Fetch(this IWorker worker, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| String | name | output Tensor name |
Returns
| Type | Description |
|---|---|
| Tensor | copy of the output Tensor |
FetchAndTakeOwnership(IWorker)
Deprecated. Use PeekOutput followed by TakeOwnership or DeepCopy instead
Declaration
public static Tensor FetchAndTakeOwnership(this IWorker worker)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
Returns
| Type | Description |
|---|---|
| Tensor | output Tensor |
FetchAndTakeOwnership(IWorker, String)
Deprecated. Use PeekOutput followed by TakeOwnership or DeepCopy instead
Declaration
public static Tensor FetchAndTakeOwnership(this IWorker worker, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| String | name | output Tensor name |
Returns
| Type | Description |
|---|---|
| Tensor | output Tensor |
GetAsyncProgress(IWorker)
Deprecated. Use scheduleProgress instead
Declaration
public static float GetAsyncProgress(this IWorker worker)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
Returns
| Type | Description |
|---|---|
| Single | Manual schedule progress (0 = 0%, 1 = 100% complete) |
Peek(IWorker)
Deprecated. Use PeekOutput instead
Declaration
public static Tensor Peek(this IWorker worker)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
Returns
| Type | Description |
|---|---|
| Tensor | output Tensor |
Peek(IWorker, String)
Deprecated. Use PeekOutput instead
Declaration
public static Tensor Peek(this IWorker worker, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |
| String | name | output Tensor name |
Returns
| Type | Description |
|---|---|
| Tensor | output Tensor |
WaitForCompletion(IWorker)
Deprecated. Use FlushSchedule instead
Declaration
public static void WaitForCompletion(this IWorker worker)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorker | worker | IWorker |