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

Method set

caffe2/python/task.py:372–375  ·  view source on GitHub ↗
(self, values, _fetch_func=None)

Source from the content-addressed store, hash-verified

370 self._values = None
371
372 def set(self, values, _fetch_func=None):
373 assert len(values) == len(self.names)
374 self._values = values
375 self._fetch_func = _fetch_func
376
377 def get(self):
378 assert self._values is not None, 'Output value not set yet.'

Callers 1

set_valuesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected