parameters: (graph: Graph, replacements_type: list)
docstring: Apply all patterns that do not have 'op' first, then apply patterns from registered_ops.
      If two or more classes replaces the same op (both have op class attribute and values match), such
      pattern is not applied (while registration it will warn user that we have a conflict).
docstring_summary: Apply all patterns that do not have 'op' first, then apply patterns from registered_ops.
      If two or more classes replaces the same op (both have op class attribute and values match), such
      pattern is not applied (while registration it will warn user that we have a conflict).
docstring_tokens: Apply all patterns that do not have op first then apply patterns from registered_ops . If two or more classes replaces the same op ( both have op class attribute and values match ) such pattern is not applied ( while registration it will warn user that we have a conflict ) .
function: def apply_replacements(graph: Graph, replacements_type: list):
      """
      Apply all patterns that do not have 'op' first, then apply patterns from registered_ops.
      If two or more classes replaces the same op (both have op class attribute and values match), such
      pattern is not applied (while registration it will warn user that we have a conflict).
      """
      replacers_order = get_replacers_order(replacements_type)
      apply_replacements_list(graph, replacers_order)
function_tokens: def apply_replacements ( graph : Graph , replacements_type : list ) : replacers_order = get_replacers_order ( replacements_type ) apply_replacements_list ( graph , replacers_order )