Coverage for /opt/cloud/slavespace/usr1/096471637100f3de0fcfc01072822a80/dttest/api/python/ge/ge/graph/__init__.py: 100%
7 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-18 20:49 +0800
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-18 20:49 +0800
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# -------------------------------------------------------------------
4# -----------------------------------------------------------------------------------------------------------
5# Copyright (c) 2025 Huawei Technologies Co., Ltd.
6# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
7# CANN Open Software License Agreement Version 2.0 (the "License").
8# Please refer to the License for details. You may not use this file except in compliance with the License.
9# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
10# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
11# See LICENSE in the root of the software repository for the full text of the License.
12# -----------------------------------------------------------------------------------------------------------
14"""
15graph模块 - 图操作接口
17这个模块提供了对Graph Engine核心图操作功能的Python封装,包括:
18- Graph: 图对象
19- Node: 节点对象
20- Operator: 算子对象,用于读写算子的属性及输入输出等定义信息
21- Tensor: 张量对象
22- DataType: 数据类型
23- Format: 数据格式
24- Placement: 数据存储位置格式
25- DumpFormat: dump格式
26- Shape: 张量形状对象
27- TensorDesc: 张量元信息描述对象
28"""
30from .graph import DumpFormat, Graph
31from .node import Node
32from .operator import Operator
33from .tensor import Tensor
34from .tensor_desc import Shape, TensorDesc
35from .types import DataType, Format, Placement
37__all__ = [
38 "Graph",
39 "Node",
40 "Operator",
41 "DataType",
42 "Format",
43 "Placement",
44 "Shape",
45 "Tensor",
46 "TensorDesc",
47 "DumpFormat",
48]