Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
context
Method · 0.95
print_op
Function · 0.45
print_net_def
Function · 0.45
print_step
Function · 0.45
print_job
Function · 0.45
Calls
1
append
Method · 0.45
Tested by
no test coverage detected