mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-29 03:30:52 +00:00
Fix variable declaration in softmax
This commit is contained in:
parent
5cff682319
commit
e6d8a09286
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ Status SoftmaxProgram::GenerateShaderCode(ShaderHelper& shader) const {
|
|||
shader.AddOutput("result", ShaderUsage::UseUniform | ShaderUsage::UseIndicesTypeAlias);
|
||||
int components = input.NumComponents();
|
||||
|
||||
std::string threadMaxDecl = is_fp32_ ? "var thread_max = x_value_t(-3.402823e+38f);\n" : "var thread_max = x_value_t(-65504.0h);\n";
|
||||
const std::string threadMaxDecl = is_fp32_ ? "var thread_max = x_value_t(-3.402823e+38f);\n" : "var thread_max = x_value_t(-65504.0h);\n";
|
||||
|
||||
// Define shared memory for row max and row sum
|
||||
shader.AdditionalImplementation()
|
||||
|
|
|
|||
Loading…
Reference in a new issue