作用:是对矩阵按列进行平均池化。

比如tensorflow教程中的这个例子,中间的GlobalAveragePooling1D就是对输入中的sequence进行平均池化。
因为这是个分类算法,输入是两维的<batch, sequence>,其中batch是训练模型的分批,sequence是单个句子的长度。
模型代码:
tensorflow教程举例中layers.GlobalAveragePooling1D()的作用
模型summary:
tensorflow教程举例中layers.GlobalAveragePooling1D()的作用
模型简单介绍
tensorflow教程举例中layers.GlobalAveragePooling1D()的作用

相关文章:

  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-11-28
  • 2021-11-02
  • 2021-12-01
猜你喜欢
  • 2023-03-04
  • 2022-02-09
  • 2021-12-06
  • 2022-12-23
  • 2021-12-28
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案