forked from hw-native-sys/simpler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
44 lines (42 loc) · 1.59 KB
/
Copy path__init__.py
File metadata and controls
44 lines (42 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (c) PyPTO Contributors.
# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
# CANN Open Software License Agreement Version 2.0 (the "License").
# Please refer to the License for details. You may not use this file except in compliance with the License.
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
# See LICENSE in the root of the software repository for the full text of the License.
# -----------------------------------------------------------------------------------------------------------
"""Scene test setup — compilation toolchain, test framework, and platform discovery."""
from .elf_parser import extract_text_section
from .kernel_compiler import KernelCompiler
from .platform_info import parse_platform
from .pto_isa import ensure_pto_isa_root
from .runtime_builder import RuntimeBuilder
from .scene_test import (
CallableNamespace,
Scalar,
SceneTestCase,
SceneTestLevel,
TaskArgsBuilder,
TensorArg,
scene_level,
scene_test,
)
from .torch_interop import make_chip_tensor_arg, torch_dtype_to_datatype
__all__ = [
"CallableNamespace",
"KernelCompiler",
"RuntimeBuilder",
"Scalar",
"SceneTestCase",
"SceneTestLevel",
"TensorArg",
"TaskArgsBuilder",
"ensure_pto_isa_root",
"extract_text_section",
"make_chip_tensor_arg",
"parse_platform",
"scene_level",
"scene_test",
"torch_dtype_to_datatype",
]