Skip to content

Add a Claude SKILL#38

Open
Le-soleile wants to merge 5 commits intoPFCCLab:masterfrom
Le-soleile:skill
Open

Add a Claude SKILL#38
Le-soleile wants to merge 5 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

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.

1 participant