今天运行tf代码报错:tensorflow.python.framework.errors_impl.UnimplementedError: Unsupported object type Tensor
查看tensorflow官网解释:Some operations may raise this error when passed otherwise-valid arguments that it does not currently support. For example, running the tf.nn.max_pool2d operation would raise this error if pooling was requested on the batch dimension, because this is not yet supported.
问题就是有的操作不支持,我这里是在数据流中用了py_func,注入了一些python代码,在GPU上跑就不行了,必须有对应的GPU C++代码实现才可以,但是在cpu上是可以的