Unverified Commit 816022e4 authored by Li Zhang's avatar Li Zhang Committed by GitHub
Browse files

Fix early exit condition in attention kernel (#788)

parent d3e2cee4
...@@ -736,7 +736,7 @@ struct DecoderMultiHeadAttentionKernel { ...@@ -736,7 +736,7 @@ struct DecoderMultiHeadAttentionKernel {
} }
// early exit if split if out of bound // early exit if split if out of bound
if (kSplitK && step_begin_ >= step_end_) { if (kSplitK && step_begin_ && step_begin_ >= step_end_) {
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment