Skip to content

[kunlunxin] add contiguous & fill_ #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged

[kunlunxin] add contiguous & fill_ #533

merged 1 commit into from
Apr 14, 2025

Conversation

DuanYaQi
Copy link
Collaborator

PR Category

Type of Change

Description

Issue

Progress

  • Change is properly reviewed (1 reviewer required, 2 recommended).
  • Change is responded to an issue.
  • Change is fully covered by a UT.

Performance

ref_x = ref_x.cuda()
value_tensor = value_tensor.cuda()
ref_x.fill_(value_tensor)
ref_x = ref_x.cpu()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm confused why not support cpu as reference device.

@nianqi-tian nianqi-tian self-requested a review April 14, 2025 05:13
@DuanYaQi DuanYaQi merged commit 3e00cec into master Apr 14, 2025
10 of 12 checks passed
@DuanYaQi DuanYaQi deleted the addContFill_ branch April 14, 2025 05:14
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.

3 participants