|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.networks.training.concurrent.ConcurrentTrainingManager
public final class ConcurrentTrainingManager
Concurrent training manager. This class allows you to queue up network training tasks to be executed either by the CPU cores or OpenCL devices. This allows the CPU/GPU to train neural networks at the same time.
| Method Summary | |
|---|---|
void |
addPerformer(ConcurrentTrainingPerformer performer)
Add a performer. |
void |
addTrainingJob(TrainingJob job)
Add a training job. |
void |
clearPerformers()
Clear all of the performers. |
void |
clearQueue()
Clear the workload. |
void |
detectPerformers()
Detect performers. |
void |
detectPerformers(boolean splitCores,
int forceCoreCount)
Detect performers. |
static ConcurrentTrainingManager |
getInstance()
|
boolean |
isSingleThreaded()
|
void |
jobDone(long time,
ConcurrentTrainingPerformerCPU perf)
|
void |
join()
Wait for all tasks to finish. |
void |
run()
Perform the training. |
void |
setReport(StatusReportable report)
Setup the object to report status to. |
void |
setSingleThreaded(boolean singleThreaded)
|
void |
start()
Start the manager. |
String |
toString()
|
ConcurrentTrainingPerformer |
waitForFreePerformer()
Wait for a free performer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ConcurrentTrainingManager getInstance()
public void addPerformer(ConcurrentTrainingPerformer performer)
performer - The performer to add.public void addTrainingJob(TrainingJob job)
job - The training job to add.public void clearPerformers()
public void clearQueue()
public void detectPerformers()
public void detectPerformers(boolean splitCores,
int forceCoreCount)
splitCores - True, if a CPU performer should be created for each core.public void join()
public void run()
run in interface Runnablepublic void setReport(StatusReportable report)
report - The object to report status to.public void start()
public ConcurrentTrainingPerformer waitForFreePerformer()
public void jobDone(long time,
ConcurrentTrainingPerformerCPU perf)
public String toString()
toString in class Objectpublic boolean isSingleThreaded()
public void setSingleThreaded(boolean singleThreaded)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||