Skip to content

Forge

Target Functions


forge.search_target_tags

search_target_tags(query: str) -> List[str]

Search for tags that contain the given query (case-insensitive).

Parameters:

Name Type Description Default
query str

The search string to match.

required
tags list

The list of tags to search within.

required

Returns:

Name Type Description
list List[str]

A list of matching tags.


forge.list_cuda_tags

list_cuda_tags(
    verbose: bool = False,
) -> Union[List[str], List[Tuple[str, TargetHost]]]

List all tags (pre-defined aliases) of CUDA targets

Parameters:

Name Type Description Default
verbose bool

A flag to return all the tags with their corresponding target string literals for the TVM compiler if true. Default is False.

False

Returns:

Type Description
Union[List[str], List[Tuple[str, TargetHost]]]

A list of tags


forge.list_x86_tags

list_x86_tags(
    verbose: bool = False,
) -> Union[List[str], List[Tuple[str, TargetHost]]]

List all tags (pre-defined aliases) of x86 targets

Parameters:

Name Type Description Default
verbose bool

A flag to return all the tags with their corresponding target string literals for the TVM compiler if true. Default is False.

False

Returns:

Type Description
Union[List[str], List[Tuple[str, TargetHost]]]

A list of tags


forge.list_arm_tags

list_arm_tags(
    verbose: bool = False,
) -> Union[List[str], List[Tuple[str, TargetHost]]]

List all tags (pre-defined aliases) of ARM targets

Parameters:

Name Type Description Default
verbose bool

A flag to return all the tags with their corresponding target string literals for the TVM compiler if true. Default is False.

False

Returns:

Type Description
Union[List[str], List[Tuple[str, TargetHost]]]

A list of tags


forge.list_android_tags

list_android_tags(
    verbose: bool = False,
) -> Union[List[str], List[Tuple[str, TargetHost]]]

List all tags (pre-defined aliases) for Android targets

Parameters:

Name Type Description Default
verbose bool

A flag to return all the tags with their corresponding target string literals for the TVM compiler if true. Default is False.

False

Returns:

Type Description
Union[List[str], List[Tuple[str, TargetHost]]]

A list of tags


forge.list_target_tags

list_target_tags(
    verbose: bool = False,
) -> Union[List[str], List[Tuple[str, TargetHost]]]

List all tags (pre-defined aliases) of all targets

Parameters:

Name Type Description Default
verbose bool

A flag to return all the tags with their corresponding target string literals for the TVM compiler if true. Default is False.

False

Returns:

Type Description
Union[List[str], List[Tuple[str, TargetHost]]]

A list of tags