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

Method getInfo

caffe2/python/docs/github.py:79–85  ·  view source on GitHub ↗
(self, formatter, name, impl)

Source from the content-addressed store, hash-verified

77 formatter.addRaw(getCodeLink(formatter, self.schema))
78
79 def getInfo(self, formatter, name, impl):
80 formatter = formatter.clone()
81 if impl:
82 formatter.addEmphasis('{name}'.format(name=name), 1)
83 formatter.addRaw(' ')
84 formatter.addCode('{impl}'.format(impl=impl), True)
85 return formatter.dump()
86
87 def generateSchema(self, formatter):
88 formatter.addHeader(self.name, 2)

Callers

nothing calls this directly

Calls 6

cloneMethod · 0.45
addEmphasisMethod · 0.45
formatMethod · 0.45
addRawMethod · 0.45
addCodeMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected