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