Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

Commit

Permalink
Fix Dynamic SGD staleness consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeri Hermans committed Jun 6, 2017
1 parent 6f4265e commit 897e441
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions distkeras/parameter_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,16 +326,16 @@ def handle_pull(self, conn, addr):
conn: socket. The opened connection.
addr: addr. Address of the remote host.
"""
# Allocate a new dictionary.
data = {}
# Fetch the raw center variables.
with self.mutex:
center_variable = self.model.get_weights()
cv = copy.deepcopy(center_variable)
# Allocate a new dictionary.
data = {}
# Store the number of updates (u) the PS executed.
data['update'] = self.num_updates
# Store the model (m).
data['model'] = cv
# Store the number of updates (u) the PS executed.
data['update'] = self.num_updates
# Send the data over the socket.
send_data(conn, data)

Expand Down

0 comments on commit 897e441

Please sign in to comment.