rithwik-db commented on code in PR #39267:
URL: https://github.com/apache/spark/pull/39267#discussion_r1067576354


##########
python/pyspark/ml/torch/distributor.py:
##########
@@ -407,13 +418,6 @@ def _run_local_training(
         try:
             if self.use_gpu:
                 gpus_owned = get_gpus_owned(self.sc)
-

Review Comment:
   This is actually no longer needed since if `num_processes > 
len(gpus_owned)`, then we set `num_processes = len(gpus_owned)`



-- 
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]

Reply via email to