Skip to content

Add a Claude SKILL#38

Merged
BingooYang merged 6 commits intoPFCCLab:masterfrom
Le-soleile:skill
Mar 1, 2026
Merged

Add a Claude SKILL#38
BingooYang merged 6 commits intoPFCCLab:masterfrom
Le-soleile:skill

Conversation

@Le-soleile
Copy link
Contributor

@Le-soleile Le-soleile commented Feb 25, 2026

PR Category

Execute Infrastructure

PR Types

Improvements

Description

加入一个用于测试开发的SKILL
使用skill生成的测试:DeviceTest.cpp
image

Device API 行为差异

Paddle 兼容层实现的 c10::Device 与 PyTorch 原生在以下边界情况存在行为差异:

  1. CPU 设备 type 枚举值:Paddle 返回 1,PyTorch 返回 0
  2. CPU 默认索引
    • Paddle:index()=0has_index()=true
    • PyTorch:index()=-1has_index()=false
  3. 字符串输出:Paddle 输出 cpu:0,PyTorch 输出 cpu

@BingooYang BingooYang merged commit 43e5464 into PFCCLab:master Mar 1, 2026
2 checks passed
@Le-soleile Le-soleile deleted the skill branch March 10, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants