afe.apis.release_v1ο
This is the development API for AFE. It supports importing models, loading and storing AFEβs internal format, quantizing, executing, and simulating.
Functionsο
Creates an AwesomeNet from the list of Transforms. |
|
|
Creates an AwesomeNet form the list of AwesomeNets. Each AwesomeNet in the list |
|
Module Contentsο
- afe.apis.release_v1.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: List[afe.ir.defines.NodeName] | None = None, net_name: str = 'aux_net', status: afe.ir.defines.Status = Status.RELAY, target: sima_utils.common.Platform = gen1_target) afe.ir.net.AwesomeNet [source]ο
Creates an AwesomeNet from the list of Transforms.
- Parameters:
transforms β The list of Transforms. Each transform in the list correspond to one input.
input_types β The list of input types. Each input correspond to one Transform.
input_node_names β If set, determines the input names of the resulting AwesomeNet.
net_name β The name of the resulting AwesomeNet. Default it βaux_netβ.
status β The status of the created AwesomeNet. Default is Status.RELAY.
target β A target platform that a model is compiled for.
- Returns:
AwesomeNet containing nodes corresponding to the transforms list.
- afe.apis.release_v1.compose_awesomenets(nets: List[afe.ir.net.AwesomeNet], status: afe.ir.defines.Status = Status.RELAY, combined_model_name: str = 'main') afe.ir.net.AwesomeNet [source]ο
Creates an AwesomeNet form the list of AwesomeNets. Each AwesomeNet in the list of input AwesomeNets becomes the subnet of the resulting AwesomeNet.
- Parameters:
nets β List[AwesomeNet]. The list of input AwesomeNet which are to be composed into a single AwesomeNet.
status β Parameter setting the status of composed network. Default value is Status.RELAY
combined_model_name β Combined model name.
- Returns:
The AwesomeNet consisting of the input AwesomeNets.