HyukjinKwon commented on code in PR #39188:
URL: https://github.com/apache/spark/pull/39188#discussion_r1066665271
##########
python/pyspark/ml/torch/distributor.py:
##########
@@ -64,6 +73,42 @@ def get_conf_boolean(sc: SparkContext, key: str,
default_value: str) -> bool:
)
+def get_gpus_owned(sc: SparkContext) -> list[str]:
+ """Gets the number of GPUs that Spark scheduled to the calling task.
+
+ Parameters
+ ----------
+ sc : SparkContext
+ The SparkContext that has GPUs available.
Review Comment:
```suggestion
The :class:`SparkContext` that has GPUs available.
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]