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

Method addHeader

caffe2/python/docs/formatter.py:69–70  ·  view source on GitHub ↗
(self, text, h=1)

Source from the content-addressed store, hash-verified

67 self.content += "\n"
68
69 def addHeader(self, text, h=1):
70 self.addLine("{header} {text}".format(header=h * '#', text=text), True)
71
72 def addEmphasis(self, text, s=1):
73 self.addRaw("{stars}{text}{stars}".format(stars=s * '*', text=text))

Callers

nothing calls this directly

Calls 2

addLineMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected