Skip to content

Commit 5f84265

Browse files
[jvm-packages] Use inferBatchSizeParameter instead of a hardcoded value. (#11745)
1 parent 425d136 commit 5f84265

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jvm-packages/xgboost4j-spark/src/main/scala/ml/dmlc/xgboost4j/scala/spark/XGBoostEstimator.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,7 @@ private[spark] trait XGBoostModel[M <: XGBoostModel[M]] extends Model[M] with ML
630630

631631
// Broadcast the booster to each executor.
632632
val bBooster = input.sparkSession.sparkContext.broadcast(nativeBooster)
633-
// TODO configurable
634-
val inferBatchSize = 32 << 10
633+
val inferBatchSize = getInferBatchSize
635634
val missing = getMissing
636635

637636
// Here, we use RDD instead of DF to avoid different encoders for different

0 commit comments

Comments
 (0)