【发布时间】:2018-11-28 17:31:03
【问题描述】:
我只是对 tensorflow reshape 函数有一个简短的问题。 在 tensorflow 中,您可以使用 shape = (None, shape1, shape2, .. ) 初始化张量占位符的形状。 现在我查看了 reshape 函数,他们使用 -1 进行新的 reshape,
例如new_tensor = tf.reshape(old_tensor, shape = (-1, shape1, shape2, ..))
-1 是否等同于 None ?如果不是,这两者有什么区别?
【问题讨论】:
标签: tensorflow reshape