当将模型从python 2.7导入到python3时,我得到了不受支持的供稿类型。占位符在下面。
# feed_dict.keys()
dict_keys([<tf.Tensor 'batch:0' shape=<unknown> dtype=int32>,
<tf.Tensor 'a:0' shape=() dtype=int32>,
<tf.Tensor 'b:0' shape=() dtype=int32>,
<tf.Tensor 'c:0' shape=() dtype=int32>,
<tensorflow.python.framework.sparse_tensor.SparseTensor object at 0x000002A9AF32D828>,
<tensorflow.python.framework.sparse_tensor.SparseTensor object at 0x000002A9AF32D7B8>,
<tensorflow.python.framework.sparse_tensor.SparseTensor object at 0x000002A9AF32DC50>,
<tensorflow.python.framework.sparse_tensor.SparseTensor object at 0x000002A9AE087AC8>,
<tensorflow.python.framework.sparse_tensor.SparseTensor object at 0x000002A9AF32DF60>,
<tensorflow.python.framework.sparse_tensor.SparseTensor object at 0x000002A9AF32DD68>,
<tensorflow.python.framework.sparse_tensor.SparseTensor object at 0x000002A9AF307DD8>,
<tensorflow.python.framework.sparse_tensor.SparseTensor object at 0x000002A9AF307F98>,
<tf.Tensor 'PlaceholderWithDefault:0' shape=() dtype=float32>])