afe.ir.execute ============== .. py:module:: afe.ir.execute Attributes ---------- .. autoapisummary:: afe.ir.execute.execute_node afe.ir.execute.execute_node_quant Classes ------- .. autoapisummary:: afe.ir.execute.NodeExecutor Functions --------- .. autoapisummary:: afe.ir.execute.execute_ir afe.ir.execute.execute_ir_quant afe.ir.execute.node_executor afe.ir.execute.node_quant_executor afe.ir.execute.create_node_executor afe.ir.execute.create_node_quant_executor Module Contents --------------- .. py:function:: execute_ir(ir: afe.ir.sima_ir.SiMaIR, inputs: Dict[afe.ir.defines.InputName, afe.ir.sima_ir.SiMaIRTensorTypes], config: afe.core.configs.RunConfigs) -> afe.ir.sima_ir.SiMaIRTensorTypes Execute the SiMaIR of the non-quantized node. :param ir: SiMaIR. The IR of the node to be executed. :param inputs: Dict[InputName, SiMaIRTensorTypes]. Inputs of the node. :param config: Configuration for how to execute a node. :return: SiMaIRTensorTypes. Results obtained by running the SiMaIR. .. py:function:: execute_ir_quant(ir: afe.ir.sima_ir.SiMaIR, inputs: Dict[afe.ir.defines.InputName, afe.ir.sima_ir.SiMaIRTensorTypes], config: afe.core.configs.RunConfigs) -> afe.ir.sima_ir.SiMaIRTensorTypes Execute the SiMaIR of the quantized node. :param ir: SiMaIR. The IR of the node to be executed. :param inputs: Dict[InputName, SiMaIRTensorTypes]. Inputs of the node. :param config: Configuration for how to execute a node. :return: SiMaIRTensorTypes. Results obtained by running the SiMaIR. .. py:class:: NodeExecutor A callable object that executes a node as part of AwesomeNet.run. .. py:function:: node_executor(config: afe.core.configs.RunConfigs) -> NodeExecutor Create an executor for a non-quantized AwesomeNode. :param config: Configuration for how to execute a node. :return: Executor. .. py:function:: node_quant_executor(config: afe.core.configs.RunConfigs) -> NodeExecutor Create an executor for a quantized AwesomeNode. :param config: Configuration for how to execute a node. :return: Executor. The executor takes the same parameters as execute_node. .. py:function:: create_node_executor(fast_mode: bool) .. py:function:: create_node_quant_executor(fast_mode: bool) -> NodeExecutor .. py:data:: execute_node :type: NodeExecutor .. py:data:: execute_node_quant :type: NodeExecutor