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

Refactor the organization of layer_norm cuda impl. #34883

Merged
merged 2 commits into from
Aug 23, 2021

Conversation

limin2021
Copy link
Contributor

@limin2021 limin2021 commented Aug 13, 2021

PR types

Performance optimization

PR changes

OPs

Describe

Refactor the organization of layer_norm cuda impl so that it can be reused in fused attention op.

  1. Extract the layer_norm cuda impl form layer_norm_op.cu to layer_norm_kernel.cu.h.
  2. Define fused/attention_layer_norm.h, which can be used in fused attention op in next PR.

Test the correctness of layer_norm op after refactoring:

V100, cuda10.1

image

@xingfeng01
Copy link
Contributor

LGTM

Copy link
Contributor

@lanxianghit lanxianghit left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants