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

Method generateCodeLink

caffe2/python/docs/github.py:74–77  ·  view source on GitHub ↗
(self, formatter)

Source from the content-addressed store, hash-verified

72
73class GHOperatorDoc(OperatorDoc):
74 def generateCodeLink(self, formatter):
75 formatter.addHeader("Code", 3)
76 formatter.addLinebreak()
77 formatter.addRaw(getCodeLink(formatter, self.schema))
78
79 def getInfo(self, formatter, name, impl):
80 formatter = formatter.clone()

Callers 1

generateSchemaMethod · 0.95

Calls 4

getCodeLinkFunction · 0.85
addHeaderMethod · 0.45
addLinebreakMethod · 0.45
addRawMethod · 0.45

Tested by

no test coverage detected