示例#1
0
def skip_runtime_test():
    """Skip test if it requires the runtime and it's not present."""
    # ACL codegen not present.
    if not tvm.get_global_func("relay.ext.arm_compute_lib", True):
        print("Skip because Arm Compute Library codegen is not available.")
        return True

    # Remote device is in use or ACL runtime not present
    if not Device.use_remote and not arm_compute_lib.is_arm_compute_runtime_enabled(
    ):
        print(
            "Skip because runtime isn't present or a remote device isn't being used."
        )
        return True
示例#2
0
def skip_runtime_test():
    """Skip test if it requires the runtime and it's not present."""
    # ACL codegen not present.
    if not tvm.get_global_func("relay.ext.arm_compute_lib", True):
        print("Skip because Arm Compute Library codegen is not available.")
        return True

    # Remote device is in use or ACL runtime not present
    # Note: Ensure that the device config has been loaded before this check
    if (not Device.connection_type != "local"
            and not arm_compute_lib.is_arm_compute_runtime_enabled()):
        print(
            "Skip because runtime isn't present or a remote device isn't being used."
        )
        return True