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

Method get

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

Source from the content-addressed store, hash-verified

375 self._fetch_func = _fetch_func
376
377 def get(self):
378 assert self._values is not None, 'Output value not set yet.'
379 if self._is_scalar:
380 return self._values[0]
381 elif self._schema:
382 return from_blob_list(self._schema, self._values)
383 else:
384 return self._values
385
386 def fetch(self):
387 assert self._fetch_func is not None, (

Callers 1

add_nodeMethod · 0.45

Calls 1

from_blob_listFunction · 0.90

Tested by

no test coverage detected