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

Function get_label

caffe2/python/net_drawer.py:208–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 kMaxParallelSteps = 3
207
208 def get_label():
209 label = [step.name + '\n']
210 if step.report_net:
211 label.append('Reporter: {}'.format(step.report_net))
212 if step.should_stop_blob:
213 label.append('Stopper: {}'.format(step.should_stop_blob))
214 if step.concurrent_substeps:
215 label.append('Concurrent')
216 if step.only_once:
217 label.append('Once')
218 return '\n'.join(label)
219
220 def substep_edge(start, end):
221 return pydot.Edge(start, end, arrowhead='dot', style='dashed')

Callers 1

_draw_stepsFunction · 0.85

Calls 3

appendMethod · 0.45
formatMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…