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

Function print_task

caffe2/python/net_printer.py:376–380  ·  view source on GitHub ↗
(text, task)

Source from the content-addressed store, hash-verified

374
375@Printer.register(Task)
376def print_task(text, task):
377 outs = ', '.join(_print_task_output(o) for o in task.outputs())
378 context = [('node', task.node), ('name', task.name), ('outputs', outs)]
379 with text.context(call('Task', context)):
380 text(task.get_step())
381
382
383@Printer.register(TaskGroup)

Callers

nothing calls this directly

Calls 7

_print_task_outputFunction · 0.85
callFunction · 0.85
textFunction · 0.85
get_stepMethod · 0.80
joinMethod · 0.45
outputsMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…