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
Properties
scheduleProgress
Declaration
public virtual float scheduleProgress { get; }
Property Value
Implements
Methods
Dispose()
Declaration
public virtual void Dispose()
Implements
Execute()
Declaration
public virtual IWorker Execute()
Returns
Implements
Execute(IDictionary<String, Tensor>)
Declaration
public virtual IWorker Execute(IDictionary<string, Tensor> inputs)
Parameters
Returns
Implements
Execute(Tensor)
Declaration
public virtual IWorker Execute(Tensor input)
Parameters
Type |
Name |
Description |
Tensor |
input |
|
Returns
Implements
Finalize()
Declaration
protected void Finalize()
FlushSchedule(Boolean)
Declaration
public virtual void FlushSchedule(bool blocking)
Parameters
Type |
Name |
Description |
Boolean |
blocking |
|
Implements
PeekConstants(String)
Declaration
public virtual Tensor[] PeekConstants(string layerName)
Parameters
Type |
Name |
Description |
String |
layerName |
|
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(string name, Tensor x)
Parameters
Implements
Declaration
public virtual void SetInput(Tensor x)
Parameters
Type |
Name |
Description |
Tensor |
x |
|
Implements
StartManualSchedule()
Declaration
public virtual IEnumerator StartManualSchedule()
Returns
Implements
StartManualSchedule(IDictionary<String, Tensor>)
Declaration
public virtual IEnumerator StartManualSchedule(IDictionary<string, Tensor> inputs)
Parameters
Returns
Implements
StartManualSchedule(Tensor)
Declaration
public virtual IEnumerator StartManualSchedule(Tensor input)
Parameters
Type |
Name |
Description |
Tensor |
input |
|
Returns
Implements
Summary()
Declaration
public virtual string Summary()
Returns
Implements
Extension Methods