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

Method addTableHTML

caffe2/python/docs/github.py:44–53  ·  view source on GitHub ↗
(self, table, noTitle=False)

Source from the content-addressed store, hash-verified

42 self.addLine(' | '.join(row))
43
44 def addTableHTML(self, table, noTitle=False):
45 self.addRaw("<table>")
46 for row in table:
47 self.addRaw("<tr>")
48 for cell in row:
49 self.addRaw("<td>")
50 self.addLine("{cell}".format(cell=cell))
51 self.addRaw("</td>")
52 self.addRaw("</tr>")
53 self.addRaw("</table>")
54
55def getCodeLink(formatter, schema):
56 formatter = formatter.clone()

Callers

nothing calls this directly

Calls 3

addRawMethod · 0.45
addLineMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected