MCPcopy Create free account
hub / github.com/pytorch/executorch / make_execution_plan

Method make_execution_plan

exir/_serialize/test/test_program.py:327–343  ·  view source on GitHub ↗
(
            name: str, delegates: List[BackendDelegate]
        )

Source from the content-addressed store, hash-verified

325
326 def test_canonicalize_delegate_indices(self) -> None:
327 def make_execution_plan(
328 name: str, delegates: List[BackendDelegate]
329 ) -> ExecutionPlan:
330 return ExecutionPlan(
331 name=name,
332 container_meta_type=ContainerMetadata(
333 encoded_inp_str="encoded_inp_str",
334 encoded_out_str="encoded_out_str",
335 ),
336 values=[],
337 inputs=[],
338 outputs=[],
339 chains=[],
340 operators=[],
341 delegates=delegates,
342 non_const_buffer_sizes=[],
343 )
344
345 # A program with three delegates across two execution plans. To start
346 # with, the data indices in the delegates are in a non-canonical order.

Callers

nothing calls this directly

Calls 2

ExecutionPlanClass · 0.90
ContainerMetadataClass · 0.90

Tested by

no test coverage detected