Skip to content

Commit

Permalink
add key_caching in pull
Browse files Browse the repository at this point in the history
  • Loading branch information
mli committed Apr 10, 2015
1 parent 30ffda6 commit 0d1995c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/linear_method/async_sgd.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ class AsyncSGDWorker : public ISGDCompNode, public LinearMethod {
MessagePtr msg(new Message(kServerGroup));
msg->setKey(key);
msg->task.set_key_channel(id);
msg->addFilter(FilterConfig::KEY_CACHING)
msg->fin_handle = [this, id]() { computeGradient(id); };
model_.key(id) = key;
model_.pull(msg);
Expand Down

0 comments on commit 0d1995c

Please sign in to comment.