You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jianfei Wang (JIRA)" <ji...@apache.org> on 2016/12/06 06:26:58 UTC

[jira] [Created] (SPARK-18735) Why don't we destroy the broadcast variable after each iteration?

Jianfei Wang created SPARK-18735:
------------------------------------

             Summary: Why don't we destroy the broadcast variable after each iteration?
                 Key: SPARK-18735
                 URL: https://issues.apache.org/jira/browse/SPARK-18735
             Project: Spark
          Issue Type: Improvement
          Components: MLlib
    Affects Versions: 2.0.2
            Reporter: Jianfei Wang


I think we should destroy the broadcast variable bcWeights explicitly in spark.mllib.GradientDescent.runMiniBatchSGD
see the code below:
  while (!converged && i <= numIterations) {
      val start = System.nanoTime()
      val bcWeights = data.context.broadcast(weights)
     // some other code
}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org