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

Method fetch

caffe2/python/task.py:386–395  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

384 return self._values
385
386 def fetch(self):
387 assert self._fetch_func is not None, (
388 'Cannot fetch value for this output.')
389 fetched_vals = [self._fetch_func(v) for v in self._values]
390 if self._is_scalar:
391 return fetched_vals[0]
392 elif self._schema:
393 return from_blob_list(self._schema, fetched_vals)
394 else:
395 return fetched_vals
396
397 def __repr__(self):
398 return "TaskOutput(names={}, values={})".format(self.names, self._values)

Callers 15

verify_costMethod · 0.45
_test_nccl_syncMethod · 0.45
test_relu_correctnessMethod · 0.45
fetch_totalMethod · 0.45
fetchFunction · 0.45
testTensorAccessMethod · 0.45
test_net_executionMethod · 0.45
test_operator_runMethod · 0.45
test_net_runMethod · 0.45

Calls 1

from_blob_listFunction · 0.90

Tested by 15

verify_costMethod · 0.36
_test_nccl_syncMethod · 0.36
test_relu_correctnessMethod · 0.36
fetch_totalMethod · 0.36
testTensorAccessMethod · 0.36
test_net_executionMethod · 0.36
test_operator_runMethod · 0.36
test_net_runMethod · 0.36
test_plan_runMethod · 0.36