MCPcopy 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
63def _escape_label(name):
64 # json.dumps is poor man's escaping
65 return json.dumps(name)
66
67
68def GetOpNodeProducer(append_output, **kwargs):

Callers 4

GetPydotGraphFunction · 0.85
_draw_netsFunction · 0.85
_draw_stepsFunction · 0.85
GetGraphInJsonFunction · 0.85

Calls 1

dumpsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…