TypeError: Could not build a TypeSpec for...;ValueError:Can't convert non-rectangular Python sequenceto tensor
在修改tensorflow2.0版本的代码时出现以下错误:


参考 文章,在代码中加入
values
:
数据是dataframe
trainData=pd.read_csv(trainDataPath, header = None)
firstProteinArrayTrain = trainData.iloc[:, 0:2401]
secondProteinArrayTrain = trainData.iloc[: