Skip to content

Conversation

@Ceng23333
Copy link
Collaborator

@Ceng23333 Ceng23333 commented Nov 25, 2025

wooway777

This comment was marked as outdated.

@InfiniTensor InfiniTensor deleted a comment from Ceng23333 Nov 25, 2025
@@ -0,0 +1,49 @@
from __future__ import annotations
Copy link
Collaborator

Choose a reason for hiding this comment

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

这是什么?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

整个文件是调试rope精度时加的短路脚本,可以删掉

if (this->is_contiguous()) {
context::memcpyD2H(this->data(), src->data(), this->data_.memory->size());
// Verify device is still set to source device before memcpy
Device current_device = context::getDevice();
Copy link
Collaborator

Choose a reason for hiding this comment

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

你上面setdevice了为什么这里还要检查?这个函数就不需要setdevice

Signed-off-by: Ceng23333 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants