aws_lambda/pytorch/source/torch/jit/__init__.py
def _make_strong(mod):
    """
    Converts a weak module into a subclass of ScriptModule
    """
    if mod in _weak_modules:
        return _weak_modules[mod]

    stubs = _weak_types.get(type(mod))["method_stubs"]

    if stubs is None:
        # Generate stubs and and store on _weak_types in case this type is
        # used again
        stubs = _get_weak_stubs(type(mod))
        _weak_types[type(mod)]["method_stubs"] = stubs

    # Create proxy with stubs
    proxy = WeakScriptModuleProxy(mod, stubs)

    _weak_modules[mod] = proxy

    return proxy

    Converts a weak module into a subclass of ScriptModule
    
Converts a weak module into a subclass of ScriptModule
Converts a weak module into a subclass of ScriptModule
def _make_strong(mod):
    if mod in _weak_modules:
        return _weak_modules[mod]
    stubs = _weak_types.get(type(mod))["method_stubs"]
    if stubs is None:
        stubs = _get_weak_stubs(type(mod))
        _weak_types[type(mod)]["method_stubs"] = stubs
    proxy = WeakScriptModuleProxy(mod, stubs)
    _weak_modules[mod] = proxy
    return proxy
def _make_strong ( mod ) : if mod in _weak_modules : return _weak_modules [ mod ] stubs = _weak_types . get ( type ( mod ) ) [ "method_stubs" ] if stubs is None : stubs = _get_weak_stubs ( type ( mod ) ) _weak_types [ type ( mod ) ] [ "method_stubs" ] = stubs proxy = WeakScriptModuleProxy ( mod , stubs ) _weak_modules [ mod ] = proxy return proxy
Converts a weak module into a subclass of ScriptModule
Converts a weak module into a subclass of ScriptModule
"""
    Converts a weak module into a subclass of ScriptModule
    """ # Generate stubs and and store on _weak_types in case this type is # used again # Create proxy with stubs
mod