Skip to content

Commit

Permalink
fix unused var warning in contrib_ops/cuda/bert/attention.cc (#16010)
Browse files Browse the repository at this point in the history
fix #16000
  • Loading branch information
jywu-msft authored and snnn committed May 19, 2023
1 parent b0fba39 commit f535d5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onnxruntime/contrib_ops/cuda/bert/attention.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ Status Attention<T>::ComputeInternal(OpKernelContext* context) const {
has_memory_efficient_attention(sm, sizeof(T) == 2);
#else
constexpr bool use_memory_efficient_attention = false;
ORT_UNUSED_VARIABLE(is_mask_1d_key_seq_len_start);
#endif

cublasHandle_t cublas = GetCublasHandle(context);
Expand Down

0 comments on commit f535d5b

Please sign in to comment.