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

Method set_values

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

Source from the content-addressed store, hash-verified

425 return names
426
427 def set_values(self, values, _fetch_func=None):
428 offset = 0
429 for o in self.outputs:
430 num = len(o.names)
431 o.set(values[offset:offset + num], _fetch_func)
432 offset += num
433 assert offset == len(values), 'Wrong number of output values.'
434
435 def __repr__(self):
436 return "TaskOutputList(outputs={})".format(self.outputs)

Callers 1

_run_compiledMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected