mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-25 22:26:24 +00:00
Update softmax_grad_impl.cu: add constexpr (#15794)
### Description Add a "constexpr" keyword to fix a static analysis warning
This commit is contained in:
parent
df7424e11f
commit
34fcdd83c8
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ Status SoftmaxGradImpl(cudaStream_t stream, cudnnHandle_t cudnn_handle, T* input
|
|||
|
||||
#define CASE_LOG2_ELEMENTS(log2_elements_value) \
|
||||
case log2_elements_value: { \
|
||||
if (log2_elements_value < start_to_use_register_efficient_func) { \
|
||||
if constexpr (log2_elements_value < start_to_use_register_efficient_func) { \
|
||||
LAUNCH_KERNEL(log2_elements_value, softmax_warp_backward); \
|
||||
} else { \
|
||||
LAUNCH_KERNEL(log2_elements_value, softmax_warp_backward_register_efficicent); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue