Russian
Языки
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



SerializableModelMixin.save

SerializableModelMixin.save(file_name)[исходный код]

Saves this model to the specified file. Internally, the model is serialized via dill. All parameters are saved, including a quantum instance that is referenced by internal objects. That means if a model is loaded from a file and is used, for instance, for inference, the same quantum instance and a corresponding backend will be used even if a cloud backend was used.

Параметры

file_name (str) – a file name or path where to save the model.

Тип результата

None