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

Class MethodProgramsPartitionerSpec

exir/backend/backend_api.py:658–666  ·  view source on GitHub ↗

Since single dispatch for to_backend requires the first argument to be a valid class, we create the following dataclass spec to hold the dictionaries mapping the method name to the corresponding program, partitioner

Source from the content-addressed store, hash-verified

656
657@dataclass
658class MethodProgramsPartitionerSpec:
659 """
660 Since single dispatch for to_backend requires the first argument to be a
661 valid class, we create the following dataclass spec to hold the dictionaries
662 mapping the method name to the corresponding program, partitioner
663 """
664
665 method_to_edge_program: Mapping[str, ExportedProgram]
666 method_to_partitioner: Mapping[str, Partitioner]
667
668
669@to_backend.register

Callers 7

_testMethod · 0.90
to_backendMethod · 0.90
export_to_et_irFunction · 0.90
export_to_et_irFunction · 0.90
export_to_et_irFunction · 0.90
export_to_et_irFunction · 0.90

Calls

no outgoing calls

Tested by 2

_testMethod · 0.72