Zou Yanyan
Zou Yanyan
> 单独保存encoder或者decoder呢 感谢苏神回复,按照苏神的建议,代码小改,如下: ` os.environ['TF_KERAS'] = '1' encoder = t5.encoder decoder = t5.decoder model = t5.model model = Model(encoder.inputs, encoder.outputs) tf.keras.models.save_model(model,'path_to_save/model.h5', save_format='tf') ` 程序可以正常执行,得到model.h5文件,不过保存的model还是keras的h5格式,并不是tf的savedmodel 格式。 如果将encoder,换成decoder,还是报上面的错误 ` TypeError: can't pickle...
> > 单独保存encoder或者decoder呢 > > 感谢苏神回复,按照苏神的建议,代码小改,如下: > > ` > os.environ['TF_KERAS'] = '1' > > encoder = t5.encoder > decoder = t5.decoder > model = t5.model > > model =...
没。。。 Esther ***@***.***> 于2022年2月17日周四 11:21写道: > 同学你解决了吗! 遇到了同样的问题 > > — > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . >...
没。。。 Esther ***@***.***> 于2022年2月17日周四 11:21写道: > 同学你解决了吗! 遇到了同样的问题 > > — > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . >...