(self, name_or_step)
| 2882 | class Plan: |
| 2883 | |
| 2884 | def __init__(self, name_or_step): |
| 2885 | self._plan = caffe2_pb2.PlanDef() |
| 2886 | self._net_dict = OrderedDict() |
| 2887 | self._steps = [] # A list of ExecutionStep |
| 2888 | if isinstance(name_or_step, ExecutionStep): |
| 2889 | self._plan.name = name_or_step.Name() |
| 2890 | self.AddStep(name_or_step) |
| 2891 | elif isinstance(name_or_step, basestring): |
| 2892 | self._plan.name = name_or_step |
| 2893 | else: |
| 2894 | raise ValueError('name_or_step must be a string or ExecutionStep') |
| 2895 | |
| 2896 | def __str__(self): |
| 2897 | return self._plan.name |
nothing calls this directly
no test coverage detected