From 926ce6e02e1919844e5f69e3800f7e160900dbf4 Mon Sep 17 00:00:00 2001 From: kai-ma Date: Fri, 4 Jul 2025 16:17:36 +0800 Subject: [PATCH] add main --- accuracy_tools/msprobe/CMakeLists.txt | 1 + accuracy_tools/msprobe/__init__.py | 16 ++++++++++++++++ accuracy_tools/msprobe/__main__.py | 26 ++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 accuracy_tools/msprobe/CMakeLists.txt create mode 100644 accuracy_tools/msprobe/__init__.py create mode 100644 accuracy_tools/msprobe/__main__.py diff --git a/accuracy_tools/msprobe/CMakeLists.txt b/accuracy_tools/msprobe/CMakeLists.txt new file mode 100644 index 00000000000..86735ca287f --- /dev/null +++ b/accuracy_tools/msprobe/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(csrc) diff --git a/accuracy_tools/msprobe/__init__.py b/accuracy_tools/msprobe/__init__.py new file mode 100644 index 00000000000..e24ad32c29b --- /dev/null +++ b/accuracy_tools/msprobe/__init__.py @@ -0,0 +1,16 @@ +# Copyright (c) 2025-2025 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from msprobe import core +from msprobe.base import Service diff --git a/accuracy_tools/msprobe/__main__.py b/accuracy_tools/msprobe/__main__.py new file mode 100644 index 00000000000..17336619123 --- /dev/null +++ b/accuracy_tools/msprobe/__main__.py @@ -0,0 +1,26 @@ +# Copyright (c) 2025-2025 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from msprobe.common.cli import MainCommand + + +def main(): + msprobe_command = MainCommand() + msprobe_command.register() + args = msprobe_command.parse() + msprobe_command.execute(args) + + +if __name__ == "__main__": + main() -- Gitee