Skip to content

Conversation

@xingfeng01
Copy link
Contributor

@xingfeng01 xingfeng01 commented Aug 9, 2021

PR types

New features

PR changes

OPs

Describe

This PR adds fused transformer related files defining c interface including class, function etc..

@paddle-bot-old
Copy link

paddle-bot-old bot commented Aug 9, 2021

Hi, It's a test PR, it will not trigger CI. If you want to trigger CI, please remove notest in your commit message.

Copy link
Collaborator

Choose a reason for hiding this comment

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

dropout type can be fix to float

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Collaborator

@zlsh80826 zlsh80826 Aug 10, 2021

Choose a reason for hiding this comment

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

FusedMHA::ComputeForward(int batch size, int max_seq_len, int num_head, int head_size, float dropout, bool is_test, uint64_t seed, const T* x, const int32_t* seqlen, const int32_t* cu_seqlen, T* output, T* softmax_mask) {}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Collaborator

Choose a reason for hiding this comment

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

FusedMHA::ComputeBackward(int batch size, int max_seq_len, int num_head, int head_size, float dropout, const T* x, const int32_t* seqlen, const int32_t* cu_seqlen, const T* grad_output, T* softmax_mask, T* grad_x) {}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@lanxianghit lanxianghit merged commit 016cc56 into PaddlePaddle:develop Aug 12, 2021
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