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

Function print_net_def

caffe2/python/net_printer.py:304–313  ·  view source on GitHub ↗
(text, net_def)

Source from the content-addressed store, hash-verified

302
303@Printer.register(NetDef)
304def print_net_def(text, net_def):
305 if text.c2_syntax:
306 text.add(call('core.Net', ["'%s'" % net_def.name], [net_def.name]))
307 text.c2_net_name = net_def.name
308 else:
309 text.add('# net: %s' % net_def.name)
310 for op in net_def.op:
311 text(op)
312 if text.c2_syntax:
313 text.c2_net_name = None
314
315
316@Printer.register(Net)

Callers

nothing calls this directly

Calls 3

callFunction · 0.85
textFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…