8000 batchnorm and norm_fiber_inplace renaming by gogolgrind · Pull Request #162 · nntile/nntile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

batchnorm and norm_fiber_inplace renaming #162

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

Open
wants to merge 43 commits into
base: main
Choose a base branch
from

Conversation

gogolgrind
Copy link
Contributor

Work in Progress

@gogolgrind gogolgrind marked this pull request as ready for review October 12, 2024 13:20
@gogolgrind gogolgrind requested a review from Muxas October 12, 2024 13:20
Copy link
Member
@Muxas Muxas left a comment

Choose a reason for hiding this comment

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

need norm_fiber_inplace tests

@gogolgrind gogolgrind requested a review from Muxas November 11, 2024 13:48
Copy link
Member
@Muxas Muxas left a comment

Choose a reason for hiding this comment

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

Fix logical bugs

}
}

Copy link
Member

Choose a reason for hiding this comment

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

Add check of src2 shape and basetile_shape. It must match shapes of dst

if(init_first)
{
starpu::norm_fiber::submit<T>(m, n, k, batch, alpha,
src_tile_handle, beta, dst_tile_handle);
src1_tile_handle, beta, src2_tile_handle, dst_tile_handle);
}
else
Copy link
Member

Choose a reason for hiding this comment

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

this is totally incorrect. When you do initialization, you do dst[l]=alpha*src1[0,l,0]+beta*src2[l]. But then you update resulting dst inplace: dst[l]=alpha*src1[i,l,j]+dst[l]. Instead of norm_fiber an inplace version shall be used.

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
0