yunfengzhou-hub commented on code in PR #97: URL: https://github.com/apache/flink-ml/pull/97#discussion_r891839965
########## flink-ml-lib/src/main/java/org/apache/flink/ml/clustering/kmeans/KMeans.java: ########## @@ -160,6 +162,9 @@ public IterationBodyResult process( BasicTypeInfo.INT_TYPE_INFO, DenseVectorTypeInfo.INSTANCE), new SelectNearestCentroidOperator(distanceMeasure)); + centroidIdAndPoints + .getTransformation() + .declareManagedMemoryUseCaseAtOperatorScope(ManagedMemoryUseCase.OPERATOR, 64); Review Comment: According to offline discussion, we would create a utility method similar to `ExecNodeUtil.setManagedMemoryWeight` in order to control the usage of `declareManagedMemoryUseCaseAtOperatorScope` in Flink ML. The weight values should reference existing values in Flink, like `StreamExecWindowAggregate.WINDOW_AGG_MEMORY_RATIO`. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org