From 5fd49f66657766cac11fd14a270b0b947a92c49d Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Sun, 19 Feb 2017 18:12:49 +0800 Subject: [PATCH] Remove sequence information in GradientPrinter. * it is not necessary, because user could print sequence info by ValuePrinter. --- paddle/gserver/evaluators/Evaluator.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/paddle/gserver/evaluators/Evaluator.cpp b/paddle/gserver/evaluators/Evaluator.cpp index ae7508e2bb1..01363b583fa 100644 --- a/paddle/gserver/evaluators/Evaluator.cpp +++ b/paddle/gserver/evaluators/Evaluator.cpp @@ -929,8 +929,6 @@ REGISTER_EVALUATOR(value_printer, ValuePrinter); */ class GradientPrinter : public Evaluator { public: - GradientPrinter() {} - virtual void eval(const NeuralNetwork& nn) { for (const std::string& name : config_.input_layers()) { const Argument& argu = nn.getLayer(name)->getOutput(); @@ -939,11 +937,6 @@ public: argu.grad->print(os); LOG(INFO) << "layer=" << name << " grad matrix:\n" << os.str(); } - if (auto startPos = argu.sequenceStartPositions) { - std::ostringstream os; - startPos->getVector(false)->print(os, startPos->getSize()); - LOG(INFO) << "layer=" << name << " sequence pos vector:\n" << os.str(); - } } } -- GitLab