File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
sdks/python/apache_beam/ml/anomaly/detectors Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 3636from apache_beam .ml .inference .utils import _convert_to_result
3737from pyod .models .base import BaseDetector as PyODBaseDetector
3838
39- # Turn the used ModelHandler into specifiable
40- KeyedModelHandler = specifiable (KeyedModelHandler ) # type: ignore[misc]
41- _PostProcessingModelHandler = specifiable (_PostProcessingModelHandler ) # type: ignore[misc]
39+ # Turn the used ModelHandler into specifiable, but without lazy init.
40+ KeyedModelHandler = specifiable ( # type: ignore[misc]
41+ KeyedModelHandler ,
42+ on_demand_init = False ,
43+ just_in_time_init = False )
44+ _PostProcessingModelHandler = specifiable ( # type: ignore[misc]
45+ _PostProcessingModelHandler ,
46+ on_demand_init = False ,
47+ just_in_time_init = False )
4248
4349
4450@specifiable
You can’t perform that action at this time.
0 commit comments