UnboundLocalError:分配前已引用局部变量'indices_for_conversion_to_dense'

时间:2018-12-05 17:48:36

标签: tensorflow

回溯(最近通话最近一次):

  

文件“ boston3.py”,第50行,在       history = model.fit(train_data,train_label,epochs = EPOCHS,validation_split = 0.2,verbose = 0,callbacks = [PrintDot()])   文件   “ F:\ python-3.6.6 \ lib \ site-packages \ tensorflow \ python \ keras \ engine \ training.py”,   1669行,适合       validate_steps = validation_steps)文件“ F:\ python-3.6.6 \ lib \ site-packages \ tensorflow \ python \ keras \ engine \ training_arrays.py”,   第368行,在model_iteration中       为我在indexs_for_conversion_to_dense中:UnboundLocalError:之前引用的局部变量'indices_for_conversion_to_dense'   作业

0 个答案:

没有答案