mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Support lightgbm model loading from a string instead of file (#1136)
Co-authored-by: Bedrich Pisl <bedrich.pisl@colsys.cz>
This commit is contained in:
parent
040fd671a4
commit
8a834af777
@ -71,7 +71,7 @@ class PatchLIGHTgbmModelIO(PatchBaseModelIO):
|
|||||||
return ret
|
return ret
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _load(original_fn, model_file, *args, **kwargs):
|
def _load(original_fn, model_file=None, *args, **kwargs):
|
||||||
if not PatchLIGHTgbmModelIO._current_task:
|
if not PatchLIGHTgbmModelIO._current_task:
|
||||||
return original_fn(model_file, *args, **kwargs)
|
return original_fn(model_file, *args, **kwargs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user