[英]Expected binary or unicode string, got array
我正在尝试使用自己的图像数据集进行预测,因此我将numpy数组转换为标准TensorFlow格式,但它给了我以下错误
预期的二进制或Unicode字符串,得到了数组([[[[126,115,117],[132,118,121],[121,106,109],
贝娄是我的代码,
def my_func(arg):
arg = tf.convert_to_tensor(arg, dtype=tf.float32)
return tf.matmul(arg, arg) + arg
training_data= my_func(tf.constant(training_data[::]))
我在tensorflow中没有使用本教程 ,但找不到解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.