AMOOOMA commented on code in PR #37506: URL: https://github.com/apache/beam/pull/37506#discussion_r2776026334
########## sdks/python/apache_beam/ml/inference/base.py: ########## @@ -1803,31 +1814,70 @@ def load_model_status( return shared.Shared().acquire(lambda: _ModelStatus(False), tag=tag) +class _ProxyLoader: + """ + A helper callable to wrap the loader for MultiProcessShared. + """ + def __init__(self, loader_func, model_tag): + self.loader_func = loader_func + self.model_tag = model_tag + + def __call__(self): + unique_tag = self.model_tag + '_' + uuid.uuid4().hex Review Comment: Yep sg! Updated. -- 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]
