将tensorflow模型从python2.7升级到python 3不支持的提要类型错误

时间:2018-08-16 13:26:00

标签: python-3.x tensorflow

当将模型从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>])

0 个答案:

没有答案