CANN/ge GeUtils工具类API文档
📅 2026/7/4 7:46:00
👁️ 次浏览
GeUtils【免费下载链接】geGEGraph Engine是面向昇腾的图编译器和执行器提供了计算图优化、多流并行、内存复用和模型下沉等技术手段加速模型执行效率减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/geProduct Support StatusProductSupport StatusAtlas A3 Training Series Products/Atlas A3 Inference Series Products√Atlas A2 Training Series Products/Atlas A2 Inference Series Products√Module Importfrom ge.utils import GeUtilsFunctionality DescriptionGeUtilsprovides GE (Graph Engine) common utility interfaces, including Shape derivation and AICore operator support checking functionality.infer_shape: Performs Shape derivation on computation graph. This interface only executes Shape derivation, does not perform other graph optimizations (such as constant folding, dead edge elimination etc.).check_node_support_on_aicore: Checks if node is supported on AICore, returns boolean value for support status and unsupported reason string.ClassesGeUtilsGeUtilsclass only contains static methods, can be used without instantiation.Static MethodDescriptioninfer_shapePerforms Shape derivation on computation graphcheck_node_support_on_aicoreChecks if node is supported on AICoreFunction Prototypesinfer_shapestaticmethod def infer_shape(graph: Graph, input_shapes: List[List[int]]) - NonePerforms Shape derivation on computation graph. Only executes Shape derivation, does not perform constant folding, dead edge elimination and other graph optimizations.check_node_support_on_aicorestaticmethod def check_node_support_on_aicore(node: Node) - Tuple[bool, str]Checks if node is supported on AICore, returns boolean value for support status and unsupported reason.Parameter Descriptioninfer_shapeParameterTypeRequiredDescriptiongraphGraphYesComputation graph object to perform Shape derivationinput_shapesList[List[int]]YesInput shape list. Each element in list describes shape of a graph input, each shape is integer dimension listcheck_node_support_on_aicoreParameterTypeRequiredDescriptionnodeNodeYesComputation graph node object to be checkedReturn Value Descriptioninfer_shapeNo return value. Shape derivation result is directly updated in graph object.check_node_support_on_aicoreReturn ValueTypeDescriptionis_supportedboolWhether node is supported on AICore. True means supported, False means not supportedunsupported_reasonstrDescription of unsupported reason. If node is supported, returns empty stringConstraint Descriptioninfer_shapeonly executes Shape derivation, does not perform constant folding, dead edge elimination and other graph optimization operations.input_shapesforinfer_shapemust be list of lists, each sublist elements must be integer type.check_node_support_on_aicorerequires passing validNodeobject.All methods inGeUtilsare static methods, can be called without creating instance.Usage Examplefrom ge.utils import GeUtils from ge.graph import Graph, Node # Shape derivation graph Graph(my_graph) # ... build graph ... GeUtils.infer_shape(graph, [[1, 3, 224, 224], [1, 3, 224, 224]]) # Check if node is supported on AICore【免费下载链接】geGEGraph Engine是面向昇腾的图编译器和执行器提供了计算图优化、多流并行、内存复用和模型下沉等技术手段加速模型执行效率减少模型内存占用。 GE 提供对 PyTorch、TensorFlow 前端的友好接入能力并同时支持 onnx、pb 等主流模型格式的解析与编译。项目地址: https://gitcode.com/cann/ge创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
Agent Skills技能日志记录:建立完整的技能执行日志系统 【免费下载链接】agentskills Specification and documentation for Agent Skills 项目地址: https://gitcode.com/GitHub_Trending/ag/agentskills
在AI代理快速发展的今天,Agent Skills技…
📅 2026/7/4 7:46:00
kube-prod-runtime开发者手册:贡献代码与扩展功能的正确姿势 【免费下载链接】kube-prod-runtime A standard infrastructure environment for Kubernetes 项目地址: https://gitcode.com/gh_mirrors/ku/kube-prod-runtime
kube-prod-runtime是一个为Kuberne…
📅 2026/7/4 7:46:00
Play Integrity Fix终极指南:解锁Android设备完整认证的5大核心技术 【免费下载链接】PlayIntegrityFix Fix Play Integrity (and SafetyNet) verdicts. 项目地址: https://gitcode.com/GitHub_Trending/pl/PlayIntegrityFix
Play Integrity Fix是一款面向An…
📅 2026/7/4 7:44:00
JSONRPC在Context中的应用:深入理解AI模型通信机制 【免费下载链接】Context Native macOS client for Model Context Protocol (MCP) 项目地址: https://gitcode.com/gh_mirrors/context25/Context
Context作为一款基于Model Context Protocol (MCP) 的macO…
📅 2026/7/4 9:44:12
Elm-platform快速入门:从零开始构建你的第一个Elm应用 【免费下载链接】elm-platform Bundle of all core development tools for Elm 项目地址: https://gitcode.com/gh_mirrors/el/elm-platform
Elm-platform是一套完整的Elm核心开发工具集,它包…
📅 2026/7/4 9:44:12
Mermaid Live Editor:3分钟掌握免费在线图表编辑的终极指南 【免费下载链接】mermaid-live-editor Edit, preview and share mermaid charts/diagrams. New implementation of the live editor. 项目地址: https://gitcode.com/GitHub_Trending/me/mermaid-live-e…
📅 2026/7/4 9:44:12
Crucible在学术研究中的应用:前沿符号验证技术案例分析 【免费下载链接】crucible Crucible is a library for symbolic simulation of imperative programs 项目地址: https://gitcode.com/gh_mirrors/cr/crucible
Crucible作为一款语言无关的符号模拟库&am…
📅 2026/7/4 9:44:12
计算机使用代理框架Cua:多模态AI与安全沙箱融合的技术架构 【免费下载链接】cua Open-source infrastructure for Computer-Use Agents. Sandboxes, SDKs, and benchmarks to train and evaluate AI agents that can control full desktops (macOS, Linux, Windows)…
📅 2026/7/4 9:44:12
Ornith-1.0-9B-MTP-GGUF完全指南:如何实现1.7倍文本生成速度提升 【免费下载链接】Ornith-1.0-9B-MTP-GGUF 项目地址: https://ai.gitcode.com/hf_mirrors/protoLabsAI/Ornith-1.0-9B-MTP-GGUF
想要让AI文本生成速度提升1.7倍吗?Ornith-1.0-9B-M…
📅 2026/7/4 9:42:12
Axure RP中文界面终极解决方案:3分钟告别英文困扰 【免费下载链接】axure-cn Chinese language file for Axure RP. Axure RP 简体中文语言包。支持 Axure 11、10、9。不定期更新。 项目地址: https://gitcode.com/gh_mirrors/ax/axure-cn
还在为Axure RP的英…
📅 2026/7/4 0:00:50
1. MC6470与STM32F745VG的黄金组合解析在工业自动化和机器人控制领域,传感器与微控制器的协同工作能力直接决定了系统的响应速度和定位精度。MC6470作为一款6自由度惯性测量单元(6DOF IMU),与STM32F745VG这款基于ARM Cortex-M7内核的高性能微控制器组合&…
📅 2026/7/4 0:00:50
1. 项目概述:为什么要在本地跑 SAM Audio?这不只是“能用”,而是“必须用”SAM Audio——全称是 Segment Anything Model for Audio,不是 Meta 那个视觉领域的 SAM(Segment Anything Model)的简单移植&…
📅 2026/7/4 0:00:50
6个月前的2025年12月,Boris Cherny 公开宣布自己卸载了 IDE。一时间,Vibe Coding 成了全行业最热的话题。6个月后,当我们回过头来拉一份真实账本,发现事情远没有"一句话生成一个App"那么浪漫。本文从产品经理和研发两个…
📅 2026/7/2 17:37:53
引言:审计结束三个月了,审计员的权限还没关某城商行每年按照监管要求开展至少一次数据安全审计。审计期间,内审部门需要抽样检查各类业务数据——交易流水、客户信息、员工操作日志、权限配置记录。这些数据分布在不同系统中,审计…
📅 2026/7/2 17:37:51
目录
第一步:选对模板,省心一半
第二步:打开扫码点餐功能
开启功能按钮
桌台管理与桌码生成
第三步:个性化设计,打造品牌感
调整点餐页面
设置点餐规则 你还在让顾客站着排队点餐吗?2025年ÿ…
📅 2026/7/4 5:07:51
在业务中快速构建一个能理解私有文档、准确回答专业问题的智能助手,是很多开发团队面临的共同挑战。传统方案往往需要从零开始搭建复杂的 RAG(检索增强生成)系统,涉及文档解析、向量化、检索、大模型调用等多个环节,整…
📅 2026/7/4 5:10:18
FAE放射组学分析工具:医学影像特征探索的完整解决方案 【免费下载链接】FAE FeAture Explorer 项目地址: https://gitcode.com/gh_mirrors/fae/FAE
你是否曾经面对海量医学影像数据感到无从下手?想要从CT、MRI等影像中提取有价值的定量特征&#…
📅 2026/7/3 10:20:06