MCPcopy Create free account
hub / github.com/pytorch/pytorch / wrap_values

Method wrap_values

torch/_dynamo/variables/nn_module.py:426–437  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

424 return {k: bound_args[k] for k in names}
425
426 def wrap_values(items):
427 result = []
428 for name, submod in items:
429 result.append(
430 tx.output.register_attr_or_module(
431 submod,
432 key,
433 name,
434 source=NNModuleSource(gen_source(self.source, name)),
435 )
436 )
437 return ListIteratorVariable(result, mutable_local=MutableLocal())
438
439 def named_embed(name, obj):
440 return TupleVariable(

Callers

nothing calls this directly

Calls 5

NNModuleSourceClass · 0.85
MutableLocalClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected