Tensorflow (tfjs) - 保存经过训练的模型

标签 tensorflow tensorflow.js

我正在使用 tfjs (tensorflow.js),并使用一些数据训练了一个模型。

我的问题:

如何保存刚刚训练的模型并稍后在我的应用程序中使用它?

最佳答案

自版本 0.11 起,tensorflow.js 现在有一个 tf.model.save() 方法,目前在文档的 loadModel 部分中进行了描述。 Found here

关于Tensorflow (tfjs) - 保存经过训练的模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49673630/

相关文章:

javascript - TFJS 模型仅预测二元分类任务的相同值

javascript - 将预测张量转换为图像

tensorflow - 使用 Tensorflow 图形转换工具

javascript - Tensorflow vs Tensorflow JS 浮点算术计算的不同结果

tensorflow - 如何处理keras中多元LSTM的多步时间序列预测

python-3.x - 如何在 Tensorflow 2.0 中计算输出 wrt 输入的梯度

windows - Windows 10 上的 Tensorflow 安装,错误 'Not a supported wheel on this platform'

javascript - Tensorflow JS,自定义损失函数,将各个部分放在一起

python - 为什么在tensorflow 2中使用tf.GradientTape进行训练与使用fit API进行训练有不同的行为?

python - Tensorflow InvalidArgumentError : 2 root error(s) found. 索引 [28,0] = 11292 不在 [0, 11272)