1# 2# Copyright (c) 2024 Apple Inc. All rights reserved. 3# Provided subject to the LICENSE file in the top level directory. 4# 5 6import torch 7from executorch.backends.apple.mps.operators.node_visitor import NodeVisitor 8from executorch.backends.apple.mps.serialization.mps_graph_schema import MPSGraph 9 10 11class OpSkipOps(NodeVisitor): 12 """ 13 Parent Class for handling Skip Ops 14 """ 15 16 def __init__(self, *args) -> None: 17 super().__init__(*args) 18 19 def define_node( 20 self, 21 node: torch.fx.Node, 22 mps_graph: MPSGraph, 23 ) -> None: 24 return 25