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

Method addCode

caffe2/python/docs/formatter.py:86–90  ·  view source on GitHub ↗
(self, text, inline=False)

Source from the content-addressed store, hash-verified

84 self.addRaw("({path})".format(path=path))
85
86 def addCode(self, text, inline=False):
87 if (inline):
88 self.content += "`{text}`".format(text=text)
89 else:
90 self.addRaw("\n\n```\n{text}```\n\n".format(text=text))
91
92 def addTable(self, table, noTitle=False):
93 self.addLinebreak()

Callers 4

generateDocMethod · 0.45
getInfoMethod · 0.45
ParserClass · 0.45
makeDescMethod · 0.45

Calls 2

addRawMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected