reduce logging for tensorflow
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
+#include <stdlib.h>
#include "misc/misc.h"
#include "misc/debug.h"
@@ -436,6 +437,10 @@ const struct tf_shared_graph_s* tf_shared_graph_create(const char* path, const c
{
int plen = strlen(path) + 20;
+ //reduce logging level of TensorFlow
+ if (debug_level <= DP_INFO)
+ setenv("TF_CPP_MIN_LOG_LEVEL", "1", false);
+
char graph_path[plen];
int rlen = snprintf(graph_path, plen, "%s.pb", path);
assert(rlen < plen);
