From 149e789cc34a20086849c4e2b609a021437a0af5 Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Wed, 14 Sep 2016 13:13:32 +0100 Subject: [PATCH] debug --- src/test.cu | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/test.cu b/src/test.cu index 90dffa04..6a4ef4bf 100644 --- a/src/test.cu +++ b/src/test.cu @@ -46,21 +46,9 @@ int main(int argc, char** argv) { graph.forward(500); - std::cerr << "Result: "; - for (auto val : scores.val().shape()) { - std::cerr << val << " "; - } - std::cerr << std::endl; - std::cerr << "Result: "; - for (auto val : lr.val().shape()) { - std::cerr << val << " "; - } - std::cerr << std::endl; - std::cerr << "Log-likelihood: "; - for (auto val : graph.val().shape()) { - std::cerr << val << " "; - } - std::cerr << std::endl; + std::cerr << "scores: " << Debug(scores.val().shape()) << endl; + std::cerr << "lr: " << Debug(lr.val().shape()) << endl; + std::cerr << "Log-likelihood: " << Debug(graph.val().shape()) << endl ; graph.backward();