#include <PriorInference.h>
|
| PriorInference (typename HYP::Grammar_t *g, typename HYP::data_t *d, HYP *fr=nullptr) |
|
generator< HYP & > | run_thread (Control &ctl) override |
|
virtual generator< HYP &> | run_thread (Control &ctl, Args... args)=0 |
|
| ThreadedInferenceInterface () |
|
unsigned long | next_index () |
| Return the next index to operate on (in a thread-safe way). More...
|
|
size_t | nthreads () |
| How many threads are currently run in this interface? More...
|
|
void | run_thread_generator_wrapper (size_t thr, Control &ctl, Args... args) |
| We have to wrap run_thread in something that manages the sync with main. This really just synchronizes the output of run_thread with run below. NOTE this makes a copy of x into the local next_x, so that when the thread keeps running, it doesn't mess anything up. We may in the future block the thread and return a reference, but its not clear that's faster. More...
|
|
generator< HYP &> | run (Control ctl, Args... args) |
| Set up the multiple threads and actually run, calling run_thread_generator_wrapper. More...
|
|
generator< HYP &> | unthreaded_run (Control ctl, Args... args) |
|
template<typename HYP>
class PriorInference< HYP >
- Author
- piantado
- Date
- 10/06/20
◆ PriorInference()
◆ run_thread()
◆ data
◆ from
◆ grammar
The documentation for this class was generated from the following file: