AnandInguva commented on code in PR #26632:
URL: https://github.com/apache/beam/pull/26632#discussion_r1246844939
##########
sdks/python/apache_beam/ml/inference/huggingface_inference.py:
##########
@@ -82,12 +82,35 @@ def _validate_constructor_args(model_uri, model_class):
message.format(model_uri=model_uri, model_class=model_class))
+def no_gpu_available_warning():
+ logging.warning(
Review Comment:
Let's use logging related to this file.
For example,
https://github.com/apache/beam/blob/04fdf0818c2147576ebbd51bc0d5b6d575ed905f/sdks/python/apache_beam/utils/retry.py#L59
--
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]