Skip to content

fix 115#22

Closed
Jassicia wants to merge 2 commits into
mainfrom
chenzhiyuan-operator
Closed

fix 115#22
Jassicia wants to merge 2 commits into
mainfrom
chenzhiyuan-operator

Conversation

@Jassicia

@Jassicia Jassicia commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

fix 115

Copilot AI review requested due to automatic review settings June 9, 2026 02:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR appears to add an MLU implementation for problem 115 (Unfold / im2col) and updates the root config so the evaluation system runs that problem.

Changes:

  • Add Unfold.mlu implementing a half-precision unfold_kernel and a bang_func wrapper producing [N, C*K*K, H_out*W_out].
  • Update config to evaluate problem 115 instead of 075.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Unfold.mlu Adds Unfold/im2col kernel and bang_func wrapper for task 115.
config Switches evaluation target to problem 115.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Unfold.mlu
Comment on lines +78 to +83
int H_out = (H + 2 * padding - K) / stride + 1;
int W_out = (W + 2 * padding - K) / stride + 1;

TORCH_CHECK(H_out > 0 && W_out > 0,
"Invalid output size: H_out=", H_out, ", W_out=", W_out);

Comment thread Unfold.mlu
Comment on lines +84 to +88
int rows = C * K * K;
int columns = H_out * W_out;
int total = N * rows * columns;

auto output = torch::empty({N, rows, columns}, x.options());
@Jassicia Jassicia closed this Jun 9, 2026
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