parameters: (gm: torch.fx.GraphModule)
return_statement: return changed
docstring: Unconditionally removes all assertions found in GraphModule gm.
      Returns whether the graph is modified.
docstring_summary: Unconditionally removes all assertions found in GraphModule gm.
      Returns whether the graph is modified.
docstring_tokens: Unconditionally removes all assertions found in GraphModule gm . Returns whether the graph is modified .
function: def _remove_assertions(gm: torch.fx.GraphModule) -> bool:
      """
      Unconditionally removes all assertions found in GraphModule gm.
      Returns whether the graph is modified.
      """
      changed = False
      for node in gm.graph.nodes:
          if node.op == "call_function" and node.target == torch._assert:
              gm.graph.erase_node(node)
              changed = True
      return changed
function_tokens: def _remove_assertions ( gm : torch . fx . GraphModule ) -> bool : changed = False for node in gm . graph . nodes : if node . op == "call_function" and node . target == torch . _assert : gm . graph . erase_node ( node ) changed = True return changed