如何更改导出模型的输入功能

时间:2019-07-27 18:37:15

标签: tensorflow tensorflow-estimator

我训练了一个张量流估计器,并使用函数estimator.export_savedmodel将其导出到服务中。

模型另存为save_model.pd和变量。

输入功能为

{'input1': <tf.Tensor 'Placeholder_2_1:0' shape=(?, 60) dtype=int32>,

'input2': <tf.Tensor 'Placeholder_4:0' shape=(?, 60) dtype=float>}

但是我想将input2的数据类型(dtype)更改为int32。有办法吗?

谢谢。

0 个答案:

没有答案