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

Function to_execution_step

caffe2/python/core.py:2959–2971  ·  view source on GitHub ↗
(step_or_nets, default_name=None)

Source from the content-addressed store, hash-verified

2957
2958
2959def to_execution_step(step_or_nets, default_name=None):
2960 from caffe2.python.net_builder import NetBuilder
2961 if isinstance(step_or_nets, ExecutionStep):
2962 return step_or_nets
2963
2964 stop_blob = None
2965 if not default_name and hasattr(step_or_nets, 'name'):
2966 default_name = step_or_nets.name
2967 if isinstance(step_or_nets, NetBuilder):
2968 stop_blob = step_or_nets._stop_blob
2969 step_or_nets = step_or_nets.get()
2970 return execution_step(
2971 default_name, step_or_nets, should_stop_blob=stop_blob)
2972
2973
2974def execution_step(default_name,

Callers 4

test_opsMethod · 0.90
test_if_netMethod · 0.90
test_while_netMethod · 0.90
execution_stepFunction · 0.85

Calls 3

isinstanceFunction · 0.85
execution_stepFunction · 0.85
getMethod · 0.45

Tested by 3

test_opsMethod · 0.72
test_if_netMethod · 0.72
test_while_netMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…