Files
paddlepaddle--paddle/test/ai_edited_test/test_ai_fleet_hybrid_parallel.py
2026-07-13 12:40:42 +08:00

42 lines
1.5 KiB
Python

# Copyright (c) 2026 PaddlePaddle Authors. All Rights Reserved.
#
# 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.
# [AUTO-GENERATED] Test file for paddle.distributed.fleet.utils.hybrid_parallel_util
# 覆盖模块: paddle/distributed/fleet/utils/hybrid_parallel_util.py
# Uncovered lines: 47-178
import unittest
from paddle.distributed.fleet.utils import hybrid_parallel_util
class TestHybridParallelUtil(unittest.TestCase):
"""测试 hybrid_parallel_util 模块
Test hybrid_parallel_util module"""
def test_module_import(self):
"""测试 hybrid_parallel_util 模块可导入
Test hybrid_parallel_util module can be imported"""
self.assertIsNotNone(hybrid_parallel_util)
def test_module_has_functions(self):
"""测试 hybrid_parallel_util 模块有函数
Test hybrid_parallel_util module has functions"""
# The module should have some attributes
self.assertTrue(len(dir(hybrid_parallel_util)) > 0)
if __name__ == '__main__':
unittest.main()