Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ _escape_label
Function
_escape_label
caffe2/python/net_drawer.py:63–65 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
61
62
63
def
_escape_label(name):
64
# json.dumps is poor man's escaping
65
return
json.dumps(name)
66
67
68
def
GetOpNodeProducer(append_output, **kwargs):
Callers
4
GetPydotGraph
Function · 0.85
_draw_nets
Function · 0.85
_draw_steps
Function · 0.85
GetGraphInJson
Function · 0.85
Calls
1
dumps
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…