zhengruifeng commented on code in PR #52231:
URL: https://github.com/apache/spark/pull/52231#discussion_r2321094574


##########
python/pyspark/ml/tests/connect/test_legacy_mode_classification.py:
##########
@@ -217,7 +246,15 @@ def test_save_load(self):
 
             fs_model_path = os.path.join(tmp_dir, "fs", "model")
             model.save(fs_model_path)
-            loaded_model = LORV2Model.load(fs_model_path)
+
+            with torch.serialization.safe_globals(

Review Comment:
   If torch>=2.6.0 is used, then it is up to the end users to specify the 
`safe_globals` derived from torch.



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to