File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414from executorch .backends .arm ._passes .arm_pass import ArmPass
1515from executorch .backends .arm ._passes .rewrite_slice import RewriteSlicePass
1616from executorch .backends .arm .arm_vela import vela_compile
17- from executorch .backends .arm .ethosu .compile_spec import EthosUCompileSpec
1817from executorch .backends .arm .tosa .mapping import map_dtype
1918from executorch .backends .arm .tosa .specification import get_context_spec
2019from executorch .exir .dialects ._ops import ops as exir_ops
@@ -112,6 +111,9 @@ def _violates_exact_constraint(
112111 permutation and dtype to check wheter it is supported.
113112 """
114113
114+ # Lazy import to avoid circular dependency
115+ from executorch .backends .arm .ethosu .compile_spec import EthosUCompileSpec
116+
115117 if dtype not in (torch .int8 , torch .bool , torch .int16 ):
116118 return True
117119
You can’t perform that action at this time.
0 commit comments