Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private[spark] object GradientBoostedTrees extends Logging {
(a, b) => treesIndices.map(idx => a(idx) + b(idx)))
.map(_ / dataCount)

broadcastTrees.destroy()
broadcastTrees.destroy(blocking = false)
evaluation.toArray
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ object LBFGS extends Logging {
val (gradientSum, lossSum) = data.treeAggregate((zeroSparseVector, 0.0))(seqOp, combOp)

// broadcasted model is not needed anymore
bcW.destroy()
bcW.destroy(blocking = false)

/**
* regVal is sum of weight squares if it's L2 updater;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class GradientBoostedTreesModel @Since("1.2.0") (
(a, b) => treesIndices.map(idx => a(idx) + b(idx)))
.map(_ / dataCount)

broadcastTrees.destroy()
broadcastTrees.destroy(blocking = false)
evaluation.toArray
}

Expand Down