AMOOOMA commented on code in PR #38936:
URL: https://github.com/apache/beam/pull/38936#discussion_r3430110066
##########
sdks/python/apache_beam/ml/inference/base.py:
##########
@@ -1997,6 +2013,9 @@ def load():
# Ensure the tag we're loading is valid, if not replace it with a valid tag
self._cur_tag = self._model_metadata.get_valid_tag(model_tag)
if self.use_model_manager:
+ # Force an import here to avoid missing ModelManager when needed.
+ # Throw an error if ModelManager is not available since it's required
for this code path.
+ ModelManager = _try_import_model_manager(throw_error=True)
Review Comment:
Sg! Done. Also had to do gloabl ModelManager just in front to not confuse
the interpreter
--
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]