首页 > 解决方案 > 用于RNN的tensorflow tf.keras.layers.Attention

问题描述

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/layers/dense_attention.py说:“这个类适用于 Dense 或 CNN 网络,不适用于 RNN 网络。” 有谁知道为什么?

https://www.tensorflow.org/api_docs/python/tf/keras/layers/Attention没有提到上述内容。

谢谢。

标签: tensorflowkeras

解决方案


推荐阅读