afe.apis.release_v1 =================== .. py:module:: afe.apis.release_v1 .. autoapi-nested-parse:: This is the development API for AFE. It supports importing models, loading and storing AFE's internal format, quantizing, executing, and simulating. Functions --------- .. autoapisummary:: afe.apis.release_v1.create_auxiliary_processing_network afe.apis.release_v1.compose_awesomenets afe.apis.release_v1.get_model_sdk_version Module Contents --------------- .. py:function:: create_auxiliary_processing_network(transforms: List[afe.apis.transform.Transform], input_types: Dict[afe.ir.defines.InputName, afe.ir.tensor_type.TensorType], *, input_node_names: Optional[List[afe.ir.defines.NodeName]] = None, net_name: str = 'aux_net', status: afe.ir.defines.Status = Status.RELAY, target: sima_utils.common.Platform = gen1_target) -> afe.ir.net.AwesomeNet Creates an AwesomeNet from the list of Transforms. :param transforms: The list of Transforms. Each transform in the list correspond to one input. :param input_types: The list of input types. Each input correspond to one Transform. :param input_node_names: If set, determines the input names of the resulting AwesomeNet. :param net_name: The name of the resulting AwesomeNet. Default it "aux_net". :param status: The status of the created AwesomeNet. Default is Status.RELAY. :param target: A target platform that a model is compiled for. :return: AwesomeNet containing nodes corresponding to the transforms list. .. py:function:: compose_awesomenets(nets: List[afe.ir.net.AwesomeNet], status: afe.ir.defines.Status = Status.RELAY, combined_model_name: str = 'main') -> afe.ir.net.AwesomeNet Creates an AwesomeNet form the list of AwesomeNets. Each AwesomeNet in the list of input AwesomeNets becomes the subnet of the resulting AwesomeNet. :param nets: List[AwesomeNet]. The list of input AwesomeNet which are to be composed into a single AwesomeNet. :param status: Parameter setting the status of composed network. Default value is Status.RELAY :param combined_model_name: Combined model name. :return: The AwesomeNet consisting of the input AwesomeNets. .. py:function:: get_model_sdk_version() -> str