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

Function getCodeLink

caffe2/python/docs/github.py:55–61  ·  view source on GitHub ↗
(formatter, schema)

Source from the content-addressed store, hash-verified

53 self.addRaw("</table>")
54
55def getCodeLink(formatter, schema):
56 formatter = formatter.clone()
57 path = os.path.relpath(schema.file, "caffe2")
58 schemaLink = ('https://github.com/pytorch/pytorch/blob/main/{path}'
59 .format(path=path))
60 formatter.addLink('{path}'.format(path=path), schemaLink)
61 return formatter.dump()
62
63
64class GHOperatorEngine(OperatorEngine):

Callers 1

generateCodeLinkMethod · 0.85

Calls 4

cloneMethod · 0.45
formatMethod · 0.45
addLinkMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…