python – TypeError:传递给参数’a’的值使DataType不在允许值列表中
我有以下代码:_X=np.arange(1,7).reshape((2,3))_Y=np.arange(1,7).reshape((3,2))X=tf.convert_to_tensor(_X)Y=tf.convert_to_tensor(_Y)#Matrixmultiplicationout1=tf.matmul(X,Y)对于它,我收到此错误:TypeError:Valuepassedtoparameter'a'