上一页 1 2 3 4 5 6 7 8 ··· 43 下一页
摘要: ONNX前向inference调试 ONNX作为一个方便在各大主流深度学习框架中迁移转换的中间表达式,在工业界使用越加频繁。关于ONNXgithub上有部分相关文档参考链接https://github.com/onnx/onnx,对相关接口的详细说明尚且不够。本文针对onnx的前向过程说明下常见的调 阅读全文
posted @ 2025-06-26 19:25 michaelchengjl 阅读(22) 评论(0) 推荐(0)
摘要: tf.one_hot()函数简介 tf.one_hot()函数是将input转化为one-hot类型数据输出,相当于将多个数值联合放在一起作为多个相同类型的向量,可用于表示各自的概率分布,通常用于分类任务中作为最后的FC层的输出,有时翻译成“独热”编码。 tensorflow的help中相关说明如下 阅读全文
posted @ 2025-06-26 19:15 michaelchengjl 阅读(62) 评论(0) 推荐(0)
摘要: python3 读写大文件 import os file_path = "/home/Qwen3-Embedding-0.6B_external.mlir" from functools import partial, wraps from typing import TextIO, Callabl 阅读全文
posted @ 2025-06-11 15:04 michaelchengjl 阅读(31) 评论(0) 推荐(0)
摘要: MLIR Affine Dialect https://mlir.llvm.org/docs/Dialects/Affine/ https://discourse.llvm.org/t/about-mlir-polyhedral-optimization/1268/9 https://discour 阅读全文
posted @ 2025-05-26 16:46 michaelchengjl 阅读(20) 评论(0) 推荐(0)
摘要: 通用的bazel workspace 模板 以下是一个通用的 Bazel Workspace 模板,支持 C++/Python 混合项目、多平台构建、外部依赖管理和单元测试,适用于现代 C++(17/20)和 Python 3 项目: WORKSPACE 文件: # WORKSPACE 文件(项目根 阅读全文
posted @ 2025-05-09 19:47 michaelchengjl 阅读(74) 评论(0) 推荐(0)
摘要: 通用的CMakelists.txt 模板 以下是一个通用的、模块化的 CMakeLists.txt 模板,支持 C++11/14/17 标准、多平台构建、第三方库依赖管理和单元测试集成,适用于大多数中小型项目: # 基础配置 cmake_minimum_required(VERSION 3.12) 阅读全文
posted @ 2025-05-09 19:40 michaelchengjl 阅读(248) 评论(0) 推荐(0)
摘要: NV GPU 算子库 GPU 算子库(GPU Operator Libraries)详解 GPU 算子库是针对 GPU 加速计算优化的高性能算子(Operator)集合,主要用于深度学习训练/推理、科学计算、图像处理等领域。这些库通过高度优化的 CUDA/ROCm 内核实现,显著提升计算效率。以下是 阅读全文
posted @ 2025-05-09 10:53 michaelchengjl 阅读(449) 评论(0) 推荐(0)
摘要: LLVM 后端 https://www.zhihu.com/people/chen-xing-qiang-61/posts https://harmonyhu.com/2021/07/17/llvm/ 阅读全文
posted @ 2025-05-08 16:53 michaelchengjl 阅读(8) 评论(0) 推荐(0)
摘要: NPU基础与AI芯片杂谈 https://zhuanlan.zhihu.com/p/713743164 阅读全文
posted @ 2025-05-08 16:52 michaelchengjl 阅读(6) 评论(0) 推荐(0)
摘要: C++标准库头文件 cstddef 举例说明 1. <cstddef> <cstddef> 是 C++ 标准库头文件,定义了与 内存偏移、指针运算和大小计算 相关的类型和宏。以下是它的核心内容及代码示例: 1. 核心定义 <cstddef> 定义了以下关键内容: size_t:无符号整数类型,表示对 阅读全文
posted @ 2025-04-28 15:16 michaelchengjl 阅读(101) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 43 下一页