如何为Estimator input_fn准备具有动态形状的要素?

时间:2018-06-14 01:51:12

标签: tensorflow tensorflow-estimator

我试图写一个返回input_fn的{​​{1}},其中每个(features, labels)是矩阵,一个是动态形状(时间序列长度可变)。

tf.feature_column.numeric_column似乎只支持固定形状feature

  

shape:可迭代的整数指定Tensor的形状。一个   可以给出整数,这意味着给定的单个尺寸Tensor   宽度。表示列的Tensor将具有形状   [batch_size] + shape。

0 个答案:

没有答案
相关问题