Skip to content

[API Compatibility] add torch.cuda.amp.GradScaler -part#830

Open
Manfredss wants to merge 3 commits intoPaddlePaddle:masterfrom
Manfredss:ApiEnhance_gradScaler
Open

[API Compatibility] add torch.cuda.amp.GradScaler -part#830
Manfredss wants to merge 3 commits intoPaddlePaddle:masterfrom
Manfredss:ApiEnhance_gradScaler

Conversation

@Manfredss
Copy link
Copy Markdown
Contributor

PR Docs

add torch.cuda.amp.GradScaler

PR APIs

torch.cuda.amp.GradScale

related Paddle pr:

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Feb 19, 2026

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Feb 19, 2026
obj.run(pytorch_code, ["scaled"])


@pytest.mark.skipif(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

位置参数有没,用AI帮你分析这个文件的规范遵循度:

   测试所有可能的Pytorch API用法:
   - **全部**位置参数:`func(a, b, c)`
   - **全部**关键字参数:`func(x=a, y=b, z=c)`
   - out参数(如支持):`func(a, b, c, out=a)`
   - 混合参数:`func(a, y=b, z=c)`
   - **全部**关键字乱序:`func(z=c, x=a, y=b)`
   - 指定**全部**默认参数:`func(a, dim=0,offset=1)`
   - 缺省**全部**默认参数:`func(a)`
   - 变量传参:`args=(a,b); func(*args)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants