niftynet.engine.handler_network_output module

This module implements a network output interpreter.

class OutputInterpreter(**_unused)[source]

Bases: object

This class handles iteration events to interpret output.

set_tensors_to_run(sender, **msg)[source]

Event handler to add all tensors to evaluate to the iteration message. The driver will fetch tensors’ values from _iter_msg.ops_to_run.

Parameters:
  • sender – a niftynet.application instance
  • msg – an iteration message instance
Returns:

interpret_output(sender, **msg)[source]

Calling sender application to interpret evaluated tensors. Set _iter_msg.should_stop to a True value if it’s an end of the engine loop.

See also: niftynet.engine.application_driver.loop

Parameters:
  • sender – a niftynet.application instance
  • msg – an iteration message instance
Returns: