-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix logical bugs
} | ||
} | ||
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Work in Progress