diff --git a/paddle/gserver/gradientmachines/NeuralNetwork.cpp b/paddle/gserver/gradientmachines/NeuralNetwork.cpp index 3b6234a6e5e07c506e0c86d0e32a77b5e134b744..1f2aa61b6f86eebf7b002f1e48aa56d1d14d4820 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