TrainingExtensions/torch/src/python/aimet_torch/model_preparer.py
def _find_functional_name_for_node(node: torch.fx.node) -> Union[str, None]:
    """
    For given node, find corresponding functional name from functional_to_module lookup
    :param node: torch.fx Node
    :return: corresponding functional name if found, else None
    """
    for functional_name in functional_to_module_map:

        # \b boundary character to find the exact match from the functional_to_module lookup
        pattern = r"\b" + functional_name + r"\b"
        if search(pattern, str(node.target)):
            return functional_name

    return None

    For given node, find corresponding functional name from functional_to_module lookup
    :param node: torch.fx Node
    :return: corresponding functional name if found, else None
    
For given node, find corresponding functional name from functional_to_module lookup
For given node find corresponding functional name from functional_to_module lookup
def _find_functional_name_for_node(node: torch.fx.node) -> Union[str, None]:
    for functional_name in functional_to_module_map:
        pattern = r"\b" + functional_name + r"\b"
        if search(pattern, str(node.target)):
            return functional_name
    return None
def _find_functional_name_for_node ( node : torch . fx . node ) -> Union [ str , None ] : for functional_name in functional_to_module_map : pattern = r"\b" + functional_name + r"\b" if search ( pattern , str ( node . target ) ) : return functional_name return None
For given node, find corresponding functional name from functional_to_module lookup
For given node find corresponding functional name from functional_to_module lookup
"""
    For given node, find corresponding functional name from functional_to_module lookup
    :param node: torch.fx Node
    :return: corresponding functional name if found, else None
    """ # \b boundary character to find the exact match from the functional_to_module lookup
corresponding functional name if found, else None
corresponding functional name if found else None
node
torch.fx.node
None