diff --git a/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc b/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc index d4ab3a4ac1853..7bd825a9b0bb1 100644 --- a/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc +++ b/onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc @@ -8,7 +8,10 @@ #include "core/framework/print_tensor_statistics_utils.h" #include #include +#include #include +#include +#include #ifdef DEBUG_NODE_INPUTS_OUTPUTS_ENABLE_DUMP_TO_SQLDB #include diff --git a/onnxruntime/core/framework/debug_node_inputs_outputs_utils.h b/onnxruntime/core/framework/debug_node_inputs_outputs_utils.h index 990df27a2b48c..2ea7d59ad620e 100644 --- a/onnxruntime/core/framework/debug_node_inputs_outputs_utils.h +++ b/onnxruntime/core/framework/debug_node_inputs_outputs_utils.h @@ -20,6 +20,7 @@ #include "core/framework/session_state.h" #include "core/graph/graph.h" #include +#include #include #include diff --git a/onnxruntime/core/framework/print_tensor_statistics_utils.h b/onnxruntime/core/framework/print_tensor_statistics_utils.h index 60057150f40c0..c2030424ef19d 100644 --- a/onnxruntime/core/framework/print_tensor_statistics_utils.h +++ b/onnxruntime/core/framework/print_tensor_statistics_utils.h @@ -89,8 +89,8 @@ void PrintCommonStats(const T* data, size_t count, TensorStatisticsData& tensor_ // Statistics for float and double only for now. if constexpr (std::is_same::value) { tensor_statistics.is_float = true; - tensor_statistics.float_min = static_cast(min); - tensor_statistics.float_max = static_cast(max); + tensor_statistics.float_min = static_cast(min); + tensor_statistics.float_max = static_cast(max); } }