NotImplementedError: Cannot convert a symbolic Tensor (matmul_1:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported
求解
二者没有共用一个基类,所以不能完成转换
检查一下,是不是因为版本引起的问题
https://blog.csdn.net/weixin_41862755/article/details/121701199
无法将符号张量转成数组的错误。
报错信息已经说的很明白了,不支持转换。
pass a Tensor to a NumPy call,
报错信息提示不支持转换,你要转换的内容是什么呀。