Skip to content
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

Optimitze DepthToSpace for mode = DCR, blocksize = 4 and width = 8x #23399

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yihonglyu
Copy link
Contributor

Description

Motivation and Context

Comment on lines +193 to +209
/// The loop is unrolled by 32 for the code below:
/// for (std::ptrdiff_t i = first; i < last; ++i) {
/// int d0 = static_cast<int>(i / internal_output_stride[0]);
/// int d1 = static_cast<int>((i % internal_output_stride[0]) / internal_output_stride[1]);
/// int d2 = static_cast<int>((i % internal_output_stride[1]) / internal_output_stride[2]);
/// int d3 = static_cast<int>((i % internal_output_stride[2]) / internal_output_stride[3]);
/// int d4 = static_cast<int>((i % internal_output_stride[3]) / internal_output_stride[4] /* blocksize = 4 */);
/// int d5 = static_cast<int>(i % internal_output_stride[4] /* blocksize = 4 */);
/// const T* source = input_data + (d0 * stride[0] +
/// d1 * stride[1] +
/// d2 * stride[2] +
/// d3 * stride[3] +
/// d4 * stride[4] /* 1 */ +
/// d5 * stride[5]);
/// T* target = output_data + i;
/// *target = *source;
/// }

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
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.

1 participant