atefeh-asayesh commented on a change in pull request #1336:
URL: https://github.com/apache/systemds/pull/1336#discussion_r676037437
##########
File path:
src/main/java/org/apache/sysds/runtime/controlprogram/paramserv/LocalPSWorker.java
##########
@@ -89,19 +97,19 @@ private void computeEpoch(long dataSize, int batchIter) {
try {
for (int j = 0; j < batchIter; j++) {
ListObject gradients =
computeGradients(params, dataSize, batchIter, i, j);
-
+
boolean localUpdate = j < batchIter - 1;
-
- // Accumulate the intermediate
gradients (async for overlap w/ model updates
+
+ // Accumulate the intermediate
gradients (async for overlap w/ model updates
// and gradient computation, sequential
over gradient matrices to avoid deadlocks)
ListObject accGradientsPrev =
accGradients.get();
accGradients = _tpool.submit(() ->
ParamservUtils.accrueGradients(
- accGradientsPrev, gradients,
false, !localUpdate));
-
+ accGradientsPrev,
gradients, false, !localUpdate));
Review comment:
formatting is fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]