afe.backends.backendsο
Classesο
The Backend class contains all SiMa supported backends that can be partitioned via AFE's |
|
IR of a computation that has been lowered to an external backend representation. |
Module Contentsο
- class afe.backends.backends.Backend[source]ο
The Backend class contains all SiMa supported backends that can be partitioned via AFEβs graph partitioning pass. During graph partitioning AFE will assign each IR in the graph to at least one of the backend type in this Backend class. The partitioned IRs will then be sent to its corresponding backend and runtime later.
- Currently AFE support 4 different backends graph annotation:
MLA - SiMa.ai 1st Machine Learning Accerator
APU - x86 or ARM A65
EV - Synopsysβ DSP IP
CPU - compile on x86 for simulation purpose, used for unsupported operators
NONE - For operations outside of partitions like tuple and tuple_getitem
In the TVM, strings βllvmβ and βarmβ have special meaning, while others do not.
- class afe.backends.backends.BackendIR[source]ο
IR of a computation that has been lowered to an external backend representation. The computation has an input/output interface like a node.
- Parameters:
graph β The lowered IR. The format of this IR depends on the backend. For Backend.MLA, it is a ModelGraph. For Backend.APU, it is a CompiledTVMObjectFile.
type β AwesomeNet type of the lowered IR
backend β Backend that the lowered IR is for.
tessellate_parameters β Tessellation parameters obtained while compiling the BackendIR for MLA backend. Currently unused.
detessellate_parameters β Detessellation parameters obtained while compiling the BackendIR for MLA backend. Used for creating a check file from untessellated data while executing the compiled BackendIR using N2ACompiledBackendRunner.
stage β Stage number of the graph. Every graph have a unique stage number that represents their order in AwesomeNet.