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

Method is_sym_int_arg

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

Source from the content-addressed store, hash-verified

684 return inputs
685
686 def is_sym_int_arg(self, arg) -> bool:
687 return isinstance(arg, int) or (
688 isinstance(arg, torch.fx.Node)
689 and arg.name in self.graph_state.sym_int_values
690 )
691
692 def is_sym_bool_arg(self, arg) -> bool:
693 return isinstance(arg, bool) or (

Callers 1

serialize_inputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected