关于 Keras 入门指南 开发者指南 代码示例 Keras 3 API 文档 模型 API 模型类 顺序模型类 模型训练 API 保存与序列化 层 API 回调 API 运算 API 优化器 指标 损失函数 数据加载 内置小型数据集 Keras 应用 混合精度 多设备分布 随机数生成器 API 实用工具 Keras 2 API 文档 KerasTuner:超参数调整 KerasHub:预训练模型
► Keras 3 API 文档 / 模型 API / 保存与序列化

保存与序列化

整个模型的保存与加载

  • save 方法
  • save_model 函数
  • load_model 函数

仅权重的保存与加载

  • save_weights 方法
  • load_weights 方法

模型配置序列化

  • get_config 方法
  • from_config 方法
  • clone_model 函数

模型导出用于推理

  • export 方法
  • ExportArchive 类
  • add_endpoint 方法
  • add_variable_collection 方法
  • track 方法
  • write_out 方法

序列化实用工具

  • serialize_keras_object 函数
  • deserialize_keras_object 函数
  • custom_object_scope 类
  • get_custom_objects 函数
  • register_keras_serializable 函数

Keras 权重文件编辑器

  • KerasFileEditor 类
  • summary 方法
  • compare 方法
  • save 方法
  • rename_object 方法
  • delete_object 方法
  • add_object 方法
  • delete_weight 方法
  • add_weights 方法
保存与序列化
整个模型的保存与加载
仅权重的保存与加载
模型配置序列化
模型导出用于推理
序列化实用工具
Keras 权重文件编辑器
条款 | 隐私权政策