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

Method add_stop_condition

caffe2/python/checkpoint.py:107–112  ·  view source on GitHub ↗
(self, output)

Source from the content-addressed store, hash-verified

105 super().__exit__(*args)
106
107 def add_stop_condition(self, output):
108 if isinstance(output, core.BlobReference):
109 t = Task(outputs=[output], group=self.epoch_group)
110 output = t.outputs()[0]
111 assert isinstance(output, TaskOutput)
112 self.stop_conditions.append(output)
113
114
115def get_ckpt_filename(node_name, epoch):

Callers 2

build_pipelineFunction · 0.80
epoch_limiterFunction · 0.80

Calls 4

outputsMethod · 0.95
TaskClass · 0.90
isinstanceFunction · 0.85
appendMethod · 0.45

Tested by 1

build_pipelineFunction · 0.64