InvalidArgumentError Traceback most recent call lastCell In26 line 15 11 for i in rangeiter + 1 13 with tfGradientTape as tape--- 15 PRED_train = tfmatmulX_tra
第15行出错,因为X_train和W的矩阵形状不兼容,X_train的形状为[424,10],W的形状为[14,1],无法进行矩阵乘法运算。需要修改W的形状或者重新定义X_train的形状,使得两个矩阵的形状兼容。
原文地址: http://www.cveoy.top/t/topic/hrJY 著作权归作者所有。请勿转载和采集!