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

Method is_sym_bool_arg

exir/serde/export_serialize.py:692–696  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

690 )
691
692 def is_sym_bool_arg(self, arg) -> bool:
693 return isinstance(arg, bool) or (
694 isinstance(arg, torch.fx.Node)
695 and arg.name in self.graph_state.sym_bool_values
696 )
697
698 def serialize_input(
699 self, arg, arg_type: Optional[torch._C.Argument] = None

Callers 1

serialize_inputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected