Skip to content

Conversation

@fangfangssj
Copy link
Contributor

PR Category

Bug Fix

Description

加载模型时添加默认设备
例如torch.tensor([1, 2, 3])、torch.zeros(5)、torch.ones(5)、torch.randn(5)、torch.arange(10)、torch.linspace(0, 1, 5)等操作未指定设备,需要指定全局设备

@paddle-bot
Copy link

paddle-bot bot commented Jan 26, 2026

Thanks for your contribution!

@lixinqi lixinqi merged commit 3782f55 into PaddlePaddle:develop Jan 27, 2026
3 checks passed
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