MCPcopy Index your code
hub / github.com/pytorch/pytorch / add

Method add

caffe2/python/net_printer.py:180–182  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

178 del self._lines_in_context[-1]
179
180 def add(self, text):
181 self._lines_in_context[-1] += 1
182 self.lines.append((' ' * self._indent) + text)
183
184 def __str__(self):
185 return '\n'.join(self.lines)

Callers 5

contextMethod · 0.95
print_opFunction · 0.45
print_net_defFunction · 0.45
print_stepFunction · 0.45
print_jobFunction · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected