input_feats = Input(shape=([fc_feats.shape[0]]))
def lam_reshape(inputs):
return inputs
fc_feats_new = Lambda(lam_reshape)(input_feats)
fc_feats_new = K.reshape(fc_feats_new, [10, int(fc_feats_new.shape[1])])
fc_feats_new = sess.run(fc_feats_new)
得到错误: InvalidArgumentError(请参阅上面的回溯):您必须使用dtype float和形状[?,2048]
来输入占位符张量'input_54'的值