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

Function _StringifyName

caffe2/python/workspace.py:326–331  ·  view source on GitHub ↗
(name, expected_type)

Source from the content-addressed store, hash-verified

324
325
326def _StringifyName(name, expected_type):
327 if isinstance(name, basestring):
328 return name
329 assert type(name).__name__ == expected_type, \
330 "Expected a string or %s" % expected_type
331 return str(name)
332
333
334def StringifyBlobName(name):

Callers 2

StringifyBlobNameFunction · 0.85
StringifyNetNameFunction · 0.85

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…