neuralmonkey.runners.runner module

class neuralmonkey.runners.runner.GreedyRunExecutable(all_coders: Set[neuralmonkey.model.model_part.ModelPart], fetches: Dict[tensorflow.python.framework.ops.Tensor, Union[int, float, numpy.ndarray]], vocabulary: neuralmonkey.vocabulary.Vocabulary, postprocess: Union[Callable[[List[List[str]]], List[List[str]]], NoneType]) → None

Bases: neuralmonkey.runners.base_runner.Executable

__init__(all_coders: Set[neuralmonkey.model.model_part.ModelPart], fetches: Dict[tensorflow.python.framework.ops.Tensor, Union[int, float, numpy.ndarray]], vocabulary: neuralmonkey.vocabulary.Vocabulary, postprocess: Union[Callable[[List[List[str]]], List[List[str]]], NoneType]) → None

Initialize self. See help(type(self)) for accurate signature.

collect_results(results: List[Dict]) → None
next_to_execute() → Tuple[Set[neuralmonkey.model.model_part.ModelPart], Union[Dict, List], List[Dict[tensorflow.python.framework.ops.Tensor, Union[int, float, numpy.ndarray]]]]

Get the feedables and tensors to run.

class neuralmonkey.runners.runner.GreedyRunner(output_series: str, decoder: Union[neuralmonkey.decoders.autoregressive.AutoregressiveDecoder, neuralmonkey.decoders.classifier.Classifier], postprocess: Callable[[List[List[str]]], List[List[str]]] = None) → None

Bases: neuralmonkey.runners.base_runner.BaseRunner

__init__(output_series: str, decoder: Union[neuralmonkey.decoders.autoregressive.AutoregressiveDecoder, neuralmonkey.decoders.classifier.Classifier], postprocess: Callable[[List[List[str]]], List[List[str]]] = None) → None

Initialize self. See help(type(self)) for accurate signature.

get_executable(compute_losses: bool, summaries: bool, num_sessions: int) → neuralmonkey.runners.runner.GreedyRunExecutable
loss_names