模型工作和适合。添加后model.save('model.h5')。我正在接收
tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value dense_11/bias[[Node: _retval_dense_11/bias_0_0 = _RetvalT=DT_FLOAT, index=0, _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
我尝试model.save_weights('model.h5') 保存模型,但在尝试加载模型后我得到:
KeyError: "Unable to open object (object 'dense_12' doesn't exist)"
将模型保存到 json 然后尝试加载它我得到json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0).
我该怎么办?感谢帮助!