Skip to content

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

3 participants