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

Function remove_asserts

backends/vulkan/_passes/remove_asserts.py:44–52  ·  view source on GitHub ↗
(edge_program: ExportedProgram)

Source from the content-addressed store, hash-verified

42
43
44def remove_asserts(edge_program: ExportedProgram) -> ExportedProgram:
45 graph_module = edge_program.graph_module
46 RemoveAssertsTransform()(graph_module)
47
48 edge_program._graph_signature = _get_updated_graph_signature(
49 edge_program.graph_signature, graph_module
50 )
51 edge_program._validate()
52 return edge_program

Callers

nothing calls this directly

Calls 3

_validateMethod · 0.45

Tested by

no test coverage detected