x = tfconstantx 报错typeError List of Tensors when single Tensor expected
这个错误通常是因为 x 不是一个 Tensor 对象,而是一个列表。可以使用 tf.convert_to_tensor() 将其转换为 Tensor 对象,例如:
x = tf.convert_to_tensor(x)
原文地址: https://www.cveoy.top/t/topic/bKVk 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
这个错误通常是因为 x 不是一个 Tensor 对象,而是一个列表。可以使用 tf.convert_to_tensor() 将其转换为 Tensor 对象,例如:
x = tf.convert_to_tensor(x)
原文地址: https://www.cveoy.top/t/topic/bKVk 著作权归作者所有。请勿转载和采集!