aws_lambda/pytorch/source/torch/_jit_internal.py
def weak_script(fn, _frames_up=0):
    """
    Marks a function as a weak script function. When used in a script function
    or ScriptModule, the weak script function will be lazily compiled and
    inlined in the graph. When not used in a script function, the weak script
    annotation has no effect.
    """
    _compiled_weak_fns[fn] = {
        "status": COMPILATION_PENDING,
        "compiled_fn": None,
        "rcb": createResolutionCallback(_frames_up + 1)
    }
    return fn

    Marks a function as a weak script function. When used in a script function
    or ScriptModule, the weak script function will be lazily compiled and
    inlined in the graph. When not used in a script function, the weak script
    annotation has no effect.
    
Marks a function as a weak script function. When used in a script function
or ScriptModule, the weak script function will be lazily compiled and
inlined in the graph. When not used in a script function, the weak script
annotation has no effect.
Marks a function as a weak script function . When used in a script function or ScriptModule the weak script function will be lazily compiled and inlined in the graph . When not used in a script function the weak script annotation has no effect .
def weak_script(fn, _frames_up=0):
    _compiled_weak_fns[fn] = {
        "status": COMPILATION_PENDING,
        "compiled_fn": None,
        "rcb": createResolutionCallback(_frames_up + 1)
    }
    return fn
def weak_script ( fn , _frames_up = 0 ) : _compiled_weak_fns [ fn ] = { "status" : COMPILATION_PENDING , "compiled_fn" : None , "rcb" : createResolutionCallback ( _frames_up + 1 ) } return fn
Marks a function as a weak script function.
Marks a function as a weak script function .
"""
    Marks a function as a weak script function. When used in a script function
    or ScriptModule, the weak script function will be lazily compiled and
    inlined in the graph. When not used in a script function, the weak script
    annotation has no effect.
    """
fn
_frames_up