ValueError:无法为Tensor'targets / Y:0'输入形状为((?,1,1,8)'的形状(64,60,1,1)的值

时间:2020-03-22 15:22:17

标签: shapes tensor

def autoencoder(.....):

model_name="..."

convnet = input_data(shape=[None,window,1,1], name='input')
convnet = conv_2d(convnet, 16, 3, activation='relu')
   .......

model.fit({'input': final_train},{'targets': real_final_train}, n_epoch=100,
          validation_set=({'input': final_validation},{'targets': real_final_validation}),
          show_metric=True, run_id=model_name)

model.save(model_name)
return model

输入的形状为(215、60、1、1),其中215为样本数

0 个答案:

没有答案