InferenceGraph

class maze.perception.blocks.inference.InferenceGraph(inference_block: maze.perception.blocks.inference.InferenceBlock)
Models a perception module inference graph.
Conditions on using the InferenceGraph object:
  1. All keys of the perception_blocks dictionary have to be unique

  2. All out_keys used when creating the blocks have to be unique

  3. All out_keys of a given block have to be sub-strings of the blocks key in the perception_blocks dict

Parameters

inference_block – An inference perception block to build the graph for.

save(name: str, save_path: str)None

Construct the network and save it as a pdf.

Parameters
  • name – The name of the network to be drawn (used in the tile only).

  • save_path – The path the figure should be saved.

show(name: str, block_execution: bool)None

Construct the graph and show it.

Parameters
  • name – The name of the network to be drawn (used in the tile only).

  • block_execution – Specify whether the execution should be blocked.