|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuffy.infer.InferBucket
public class InferBucket
A bucket of inference tasks that can run in prallel. Currently, each task correspond to an MRF component so that the components can be processed in parallel.
Nested Class Summary | |
---|---|
static class |
InferBucket.CompWorker
A worker thread that runs inference on one component at a time. |
Constructor Summary | |
---|---|
InferBucket(Bucket bucket)
|
Method Summary | |
---|---|
void |
addCost(double c)
Add up the cost. |
void |
flushAtomStates(DataMover dmover,
java.lang.String relAtoms)
|
double |
getCost()
Get the cost after inference. |
int |
getNumThreads()
|
Component |
getTask()
Get the next unprocessed component in the queue |
void |
infer(Settings s)
|
void |
setMrfInitStrategy(MRF.INIT_STRATEGY strategy)
|
void |
setNumThreads(int numThreads)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InferBucket(Bucket bucket)
Method Detail |
---|
public void addCost(double c)
c
- InferBucket.CompWorker.run()
public void flushAtomStates(DataMover dmover, java.lang.String relAtoms)
public double getCost()
public int getNumThreads()
public Component getTask()
InferBucket.CompWorker.run()
public void infer(Settings s)
public void setMrfInitStrategy(MRF.INIT_STRATEGY strategy)
public void setNumThreads(int numThreads)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |