MCPcopy Create free account
hub / github.com/pytorch/pytorch / _format_header

Method _format_header

torch/_python_dispatcher.py:125–131  ·  view source on GitHub ↗
(self, header)

Source from the content-addressed store, hash-verified

123 """
124
125 def _format_header(self, header):
126 s = f"""
127{header}
128"""
129 s += self._format_line("key", "kernel")
130 s += "---------------------------\n"
131 return s
132
133 """
134 Returns raw output of all registration info for debugging only.

Callers 2

registrationsMethod · 0.95
dispatchTableMethod · 0.95

Calls 1

_format_lineMethod · 0.95

Tested by

no test coverage detected