【发布时间】:2016-03-03 13:44:44
【问题描述】:
我想做这样的事情:
height = tf.cast(features['height'],tf.int32)
width = tf.cast(features['width'],tf.int32)
image.set_shape(tf.pack([height,width,3]))
但是,我收到以下错误:
TypeError: int() argument must be a string or a number, not 'Tensor'
有人能指出我正确的方向吗?谢谢。
【问题讨论】:
标签: tensorflow