(name, obj)
| 437 | return ListIteratorVariable(result, mutable_local=MutableLocal()) |
| 438 | |
| 439 | def named_embed(name, obj): |
| 440 | return TupleVariable( |
| 441 | [ |
| 442 | ConstantVariable.create(name), |
| 443 | tx.output.register_attr_or_module( |
| 444 | obj, |
| 445 | key, |
| 446 | name, |
| 447 | source=NNModuleSource(gen_source(self.source, name)), |
| 448 | ), |
| 449 | ] |
| 450 | ) |
| 451 | |
| 452 | def gen_source(source, name): |
| 453 | name_split = name.split(".") |
nothing calls this directly
no test coverage detected