From 33b4deedf3212075f12541879856884ef32fad23 Mon Sep 17 00:00:00 2001 From: dzhwinter Date: Sat, 10 Jun 2017 01:57:26 +0800 Subject: [PATCH] "update serialization part" --- paddle/optimizer/adadelta_optimizer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/optimizer/adadelta_optimizer.cc b/paddle/optimizer/adadelta_optimizer.cc index 8d5865cd20f..a6b079ce256 100644 --- a/paddle/optimizer/adadelta_optimizer.cc +++ b/paddle/optimizer/adadelta_optimizer.cc @@ -37,6 +37,7 @@ const char* AdadeltaOptimizer::SerializeState(int* state_len) { state.set_nesterov(epsilon_); state.set_momentum(rho_); state.set_decay(decay_); + // can be used when memory alignment to system *state_len += CalStateSize(parameter_, accum_gradient_, accum_delta_, -- GitLab