(script_module)
| 16391 | }); |
| 16392 | this.registerFunction('torch.jit._script.wrap_cpp_module', (cpp_module) => { |
| 16393 | const init_fn = (script_module) => { |
| 16394 | for (const [name, module] of new torch.ModuleDict(script_module._c).items()) { |
| 16395 | script_module.__setattr__(name, torch.jit._script.wrap_cpp_module(module)); |
| 16396 | } |
| 16397 | }; |
| 16398 | return torch.jit._script.RecursiveScriptModule._construct(cpp_module, init_fn); |
| 16399 | }); |
| 16400 | this.registerType('torch._C.DeserializationStorageContext', class extends Map { |
nothing calls this directly
no test coverage detected