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

Method addTable

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

Source from the content-addressed store, hash-verified

34 self.addLine("{:toc}")
35
36 def addTable(self, table, noTitle=False):
37 self.addLinebreak()
38 assert(len(table) > 1)
39 self.addLine(' | '.join(['----------' for i in range(len(table[0]))]))
40 self.addLine(' | '.join(table[0]))
41 for row in table[1:]:
42 self.addLine(' | '.join(row))
43
44 def addTableHTML(self, table, noTitle=False):
45 self.addRaw("<table>")

Callers 1

generateTableMethod · 0.45

Calls 4

rangeFunction · 0.50
addLinebreakMethod · 0.45
addLineMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected