fixed an copy-paste indentation error
This commit is contained in:
Родитель
0673df13da
Коммит
580c40ff8b
|
@ -684,9 +684,9 @@ def load_model(filename, device=None):
|
||||||
|
|
||||||
@typemap
|
@typemap
|
||||||
def save_model(model, filename): # legacy name
|
def save_model(model, filename): # legacy name
|
||||||
import warnings
|
import warnings
|
||||||
warnings.warn('This will be removed in future versions. Please use '
|
warnings.warn('This will be removed in future versions. Please use '
|
||||||
'model.save(...) instead', DeprecationWarning)
|
'model.save(...) instead', DeprecationWarning)
|
||||||
return model.save(filename)
|
return model.save(filename)
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче