在喀拉拉邦合并两层

时间:2020-02-24 19:04:55

标签: python tensorflow keras deep-learning

我使用串联函数在Keras中合并两层

#Statistics pooling layer
h1=Lambda(stats_pool_mean,output_shape=(1,1500))(embedd)
h2=Lambda(stats_pool_std,output_shape=(1,1500))(embedd)
h=keras.layers.concatenate([h1,h2])   <---- Source of error
h=keras.layers.Reshape((1,3000))(h)

我收到此错误:

AttributeError: 'tuple' object has no attribute 'layer'

我在做什么错了?

0 个答案:

没有答案