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

Method __init__

backends/vulkan/test/tester.py:54–68  ·  view source on GitHub ↗
(
        self,
        partitioners: Optional[List[Partitioner]] = None,
        edge_compile_config: Optional[EdgeCompileConfig] = None,
    )

Source from the content-addressed store, hash-verified

52
53class ToEdgeTransformAndLower(BaseStages.ToEdgeTransformAndLower):
54 def __init__(
55 self,
56 partitioners: Optional[List[Partitioner]] = None,
57 edge_compile_config: Optional[EdgeCompileConfig] = None,
58 ):
59 if partitioners is None:
60 vk_compile_spec = {"skip_bool_tensors": True}
61 partitioners = [VulkanPartitioner(vk_compile_spec)]
62
63 super().__init__(
64 default_partitioner_cls=VulkanPartitioner,
65 partitioners=partitioners,
66 edge_compile_config=edge_compile_config
67 or EdgeCompileConfig(_check_ir_validity=False),
68 )
69
70
71class VulkanTester(TesterBase):

Callers

nothing calls this directly

Calls 3

VulkanPartitionerClass · 0.90
EdgeCompileConfigClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected