-
Notifications
You must be signed in to change notification settings - Fork 229
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
Fuse optimization #1248
base: BertMLM_fixes
Are you sure you want to change the base?
Fuse optimization #1248
Conversation
src/ops/kernels/dropout_kernels.cu
Outdated
cudaStream_t stream; | ||
checkCUDA(get_legion_stream(&stream)); | ||
Internal::forward_kernel(m, input_ptr, output_ptr, stream); | ||
Internal::forward_kernel(m, input.get_float_ptr(), output.get_float_ptr(), stream); |
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 signature does not match dropout_kernels.h, which adds another parameter: size_t num_elements
src/ops/kernels/dropout_kernels.cu
Outdated
cudaStream_t stream; | ||
checkCUDA(get_legion_stream(&stream)); | ||
Internal::backward_kernel(m, output_grad_ptr, input_grad_ptr, stream); | ||
Internal::backward_kernel(m, output_grad.get_float_ptr(), input_grad.get_float_ptr(), stream); |
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 signature does not match dropout_kernels.h, which adds another parameter: size_t num_elements
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.
Hi Pinku, I pushed some fix, please tell me if you meet any issue.
@xinhaoc Should we close this PR? |
this is the working pr of candle project, let's keep it know |
Description of changes:
Related Issues:
Linked Issues:
Issues closed by this PR:
This change is