For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
is_npu
def is_npu[target: StringSlice[target.origin]]() -> Bool
Checks if the target is an NPU (compile-time version).
Parameters:
- target (
StringSlice[target.origin]): Target string to check.
Returns:
Bool: True if the target is an NPU, False otherwise.
def is_npu(target: StringSlice) -> Bool
Checks if the target is an NPU (runtime version).
Args:
- target (
StringSlice): Target string to check.
Returns:
Bool: True if the target is an NPU, False otherwise.