Class GenericWorker
Inheritance
GenericWorker
Syntax
public class GenericWorker : IWorker, IDisposable
Constructors
GenericWorker(Model, IOps, IVars, Boolean)
Declaration
public GenericWorker(Model model, IOps ops, IVars vars, bool verbose = false)
Parameters
Methods
Dispose()
Declaration
public virtual void Dispose()
Execute()
Declaration
public virtual void Execute()
Implements
Execute(Tensor)
Declaration
public virtual void Execute(Tensor input)
Parameters
Type |
Name |
Description |
Tensor |
input |
|
Implements
Execute(IDictionary<String, Tensor>)
Declaration
public virtual void Execute(IDictionary<string, Tensor> inputs)
Parameters
Implements
ExecuteAsync()
Declaration
public virtual IEnumerator ExecuteAsync()
Returns
Implements
ExecuteAsync(Tensor)
Declaration
public virtual IEnumerator ExecuteAsync(Tensor input)
Parameters
Type |
Name |
Description |
Tensor |
input |
|
Returns
Implements
ExecuteAsync(IDictionary<String, Tensor>)
Declaration
public virtual IEnumerator ExecuteAsync(IDictionary<string, Tensor> inputs)
Parameters
Returns
Implements
Finalize()
Declaration
protected void Finalize()
GetAsyncProgress()
Declaration
public virtual float GetAsyncProgress()
Returns
Implements
PeekOutput()
Declaration
public virtual Tensor PeekOutput()
Returns
Implements
PeekOutput(String)
Declaration
public virtual Tensor PeekOutput(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Implements
Declaration
public virtual void PrepareForInput(IDictionary<string, TensorShape> inputShapes)
Parameters
Implements
ResetAllocatorIfRequested()
Declaration
protected void ResetAllocatorIfRequested()
Declaration
public virtual void SetInput(Tensor x)
Parameters
Type |
Name |
Description |
Tensor |
x |
|
Implements
Declaration
public virtual void SetInput(string name, Tensor x)
Parameters
Implements
Summary()
Declaration
public virtual string Summary()
Returns
Implements
WaitForCompletion()
Declaration
public virtual void WaitForCompletion()
Implements
Extension Methods