Skip to content

Commit 29cec35

Browse files
authored
Arm backend: Refactor compile spec handling (#14111)
Instead of factories to create list[CompileSpec], use a dataclass that contains all specs directly. This cleans up the API for creating CompileSpecs and aligns it with how the partitioner and quantizer is designed. Keep compile spec in easily handled ArmCompileSpec format as long as possible, only go to list[CompileSpec] format when neccessary for the backend API. ArmCompileSpec is subclassed for each backend to minimize risk of using incorrect compile spec for a specific target. Signed-off-by: Erik Lundell <[email protected]>
1 parent c6e52f3 commit 29cec35

31 files changed

+664
-637
lines changed

backends/arm/arm_backend.py

Lines changed: 0 additions & 245 deletions
This file was deleted.

0 commit comments

Comments
 (0)