From cb4caa5ccb673c3cd0b896607cfb9e2c2459794d Mon Sep 17 00:00:00 2001 From: hedaoyuan Date: Wed, 3 Jan 2018 14:39:16 +0800 Subject: [PATCH] Bug fix. --- paddle/gserver/gradientmachines/NeuralNetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/gserver/gradientmachines/NeuralNetwork.cpp b/paddle/gserver/gradientmachines/NeuralNetwork.cpp index 3b6234a6e..1f2aa61b6 100644 --- a/paddle/gserver/gradientmachines/NeuralNetwork.cpp +++ b/paddle/gserver/gradientmachines/NeuralNetwork.cpp @@ -189,7 +189,7 @@ void NeuralNetwork::init(const ModelConfig& config, } for (const auto& layer : layers_) { - const auto name& = layer->getName(); + const auto& name = layer->getName(); bool isMiddleLayer = true; // if data layer -- GitLab