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

Function format_value

caffe2/python/net_printer.py:238–242  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

236
237
238def format_value(val):
239 if isinstance(val, list):
240 return '[%s]' % ', '.join("'%s'" % str(v) for v in val)
241 else:
242 return str(val)
243
244
245def factor_prefix(vals, do_it):

Callers 1

factor_prefixFunction · 0.85

Calls 2

isinstanceFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…