nnvm/tvm/python/tvm/contrib/xcode.py
def codesign(lib):
    """Codesign the shared libary

    This is an required step for library to be loaded in
    the app.

    Parameters
    ----------
    lib : The path to the library.
    """
    if "TVM_IOS_CODESIGN" not in os.environ:
        raise RuntimeError("Require environment variable TVM_IOS_CODESIGN "
                           " to be the signature")
    signature = os.environ["TVM_IOS_CODESIGN"]
    cmd = ["codesign", "--force", "--sign", signature]
    cmd += [lib]
    proc = subprocess.Popen(cmd,
                            stdout=subprocess.PIPE,
                            stderr=subprocess.STDOUT)
    (out, _) = proc.communicate()
    if proc.returncode != 0:
        msg = "Codesign error:\n"
        msg += out
        raise RuntimeError(msg)
Codesign the shared libary

    This is an required step for library to be loaded in
    the app.

    Parameters
    ----------
    lib : The path to the library.
    
Codesign the shared libary
This is an required step for library to be loaded in
the app.

Parameters

lib : The path to the library.
Codesign the shared libary This is an required step for library to be loaded in the app . Parameters lib : The path to the library .
def codesign(lib):
    if "TVM_IOS_CODESIGN" not in os.environ:
        raise RuntimeError("Require environment variable TVM_IOS_CODESIGN "
                           " to be the signature")
    signature = os.environ["TVM_IOS_CODESIGN"]
    cmd = ["codesign", "--force", "--sign", signature]
    cmd += [lib]
    proc = subprocess.Popen(cmd,
                            stdout=subprocess.PIPE,
                            stderr=subprocess.STDOUT)
    (out, _) = proc.communicate()
    if proc.returncode != 0:
        msg = "Codesign error:\n"
        msg += out
        raise RuntimeError(msg)
def codesign ( lib ) : if "TVM_IOS_CODESIGN" not in os . environ : raise RuntimeError ( "Require environment variable TVM_IOS_CODESIGN " " to be the signature" ) signature = os . environ [ "TVM_IOS_CODESIGN" ] cmd = [ "codesign" , "--force" , "--sign" , signature ] cmd += [ lib ] proc = subprocess . Popen ( cmd , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) ( out , _ ) = proc . communicate ( ) if proc . returncode != 0 : msg = "Codesign error:\n" msg += out raise RuntimeError ( msg )
Codesign the shared libary
This is an required step for library to be loaded in
the app.
Codesign the shared libary This is an required step for library to be loaded in the app .
"""Codesign the shared libary

    This is an required step for library to be loaded in
    the app.

    Parameters
    ----------
    lib : The path to the library.
    """
lib