tvalentyn commented on code in PR #39922:
URL: https://github.com/apache/beam/pull/39922#discussion_r3899097027


##########
sdks/python/apache_beam/ml/inference/tensorrt_inference.py:
##########
@@ -49,6 +49,34 @@
   LOGGER.warning(msg)
 
 
+def _trt_major_version() -> int:

Review Comment:
   we could  add @functools.lru_cache(maxsize=1) here and for 
_import_cuda_driver
   



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

Reply via email to