From 672c78d2909b225e042dd322d1b74c2555f53011 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sun, 1 Nov 2020 12:19:44 +0000 Subject: [PATCH] Removed range prints to avoid fmt external dependency --- src/Tensor.cpp | 9 +-------- test/TestLogisticRegression.cpp | 18 +++++++++--------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/src/Tensor.cpp b/src/Tensor.cpp index 31777286f..299622ee4 100644 --- a/src/Tensor.cpp +++ b/src/Tensor.cpp @@ -1,11 +1,4 @@ -#if DEBUG -#if KOMPUTE_ENABLE_SPDLOG -// Only enabled if spdlog is enabled -#include -#endif -#endif - #include "kompute/Tensor.hpp" namespace kp { @@ -20,7 +13,7 @@ Tensor::Tensor(const std::vector& data, TensorTypes tensorType) { #if DEBUG SPDLOG_DEBUG( - "Kompute Tensor constructor data: {}, and type: {}", data, tensorType); + "Kompute Tensor constructor data length: {}, and type: {}", data.size(), tensorType); #endif this->mData = data; diff --git a/test/TestLogisticRegression.cpp b/test/TestLogisticRegression.cpp index 3b710678a..fa8dc7b59 100644 --- a/test/TestLogisticRegression.cpp +++ b/test/TestLogisticRegression.cpp @@ -1,7 +1,7 @@ #include "gtest/gtest.h" -#include +//#include #include "kompute/Kompute.hpp" TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegression) @@ -76,10 +76,10 @@ TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegression) EXPECT_LT(bIn->data()[0], 0.0); EXPECT_LT(bIn->data()[0], 0.0); - SPDLOG_WARN("Result wIn: {}, bIn: {}, loss: {}", - wIn->data(), - bIn->data(), - lOut->data()); + //SPDLOG_WARN("Result wIn: {}, bIn: {}, loss: {}", + // wIn->data(), + // bIn->data(), + // lOut->data()); } TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegressionManualCopy) @@ -158,8 +158,8 @@ TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegressionManualCopy) EXPECT_GT(wIn->data()[1], 1.0); EXPECT_LT(bIn->data()[0], 0.0); - SPDLOG_WARN("Result wIn: {}, bIn: {}, loss: {}", - wIn->data(), - bIn->data(), - lOut->data()); + //SPDLOG_WARN("Result wIn: {}, bIn: {}, loss: {}", + // wIn->data(), + // bIn->data(), + // lOut->data()); }