Skip to content

Commit

Permalink
make causal mask/bias both optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Cjkkkk committed Jan 12, 2024
1 parent 9af8953 commit 73928b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xla/stream_executor/cuda/cuda_dnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9427,7 +9427,8 @@ CudnnSupport::FusedMHABackwardRunnerFromDesc(
CudnnfMHAUid::d_Q_accum_ID, CudnnfMHAUid::O_ID};
if (bias_descriptor != std::nullopt) {
uids.push_back(CudnnfMHAUid::BIAS_ID);
} else {
}
if (is_causal_mask) {
// is causal mask
// negative infinity
double negative_infinity_value = -std::numeric_limits<float>::infinity();
Expand Down

0 comments on commit 73928b4

Please sign in to comment.