From 6e69d784e4814c3dbe35e8f70c6cf4b920c8b20b Mon Sep 17 00:00:00 2001 From: 天地 <tiandiweizun@gmail.com> Date: 星期三, 19 三月 2025 23:10:13 +0800 Subject: [PATCH] 1. bug fix:list(mean)和list(var),由于mean和var是numpy,导致写入到文件的格式错误,参考上面的话,大概率是list(mean.tolist()),其实外层list没有必要 (#2437) --- runtime/onnxruntime/third_party/glog/src/raw_logging.cc | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/runtime/onnxruntime/third_party/glog/src/raw_logging.cc b/runtime/onnxruntime/third_party/glog/src/raw_logging.cc index 8debc18..9e6cf17 100644 --- a/runtime/onnxruntime/third_party/glog/src/raw_logging.cc +++ b/runtime/onnxruntime/third_party/glog/src/raw_logging.cc @@ -39,14 +39,12 @@ #ifdef HAVE_UNISTD_H # include <unistd.h> // for close() and write() #endif -#include <fcntl.h> // for open() - +#include <fcntl.h> // for open() #include <ctime> - -#include "base/commandlineflags.h" #include "config.h" -#include "glog/logging.h" // To pick up flag settings etc. -#include "glog/raw_logging.h" +#include <glog/logging.h> // To pick up flag settings etc. +#include <glog/raw_logging.h> +#include "base/commandlineflags.h" #ifdef HAVE_STACKTRACE # include "stacktrace.h" @@ -62,8 +60,7 @@ #endif #if (defined(HAVE_SYSCALL_H) || defined(HAVE_SYS_SYSCALL_H)) && \ - (!(defined(GLOG_OS_MACOSX)) && !(defined(GLOG_OS_OPENBSD))) && \ - !defined(GLOG_OS_EMSCRIPTEN) + (!(defined(GLOG_OS_MACOSX))) && !defined(GLOG_OS_EMSCRIPTEN) #define safe_write(fd, s, len) syscall(SYS_write, fd, s, len) #else // Not so safe, but what can you do? -- Gitblit v1.9.1