Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

attention

> 编程语言
Open source

some attention implements

1.4K stars0 likes0 views
WebsiteGitHub

About

some attention implements

attention

some attention implements

《Attention is All You Need》中的Attention机制的实现

http://kexue.fm/archives/4765/

测试环境

python 2.7 + tensorflow 1.8+ + keras 2.2.4

注:本项目不再跟进新版本的tensorflow/keras,如果有新版本的需求,可以到bert4keras的layers.py处复制对应的函数。

交流

QQ交流群:67729435,微信群请加机器人微信号spaces_ac_cn

GitHub Issues· 11 open

View all on GitHub
  • #21

    你好,这个注意力有没有使用的例子呢?如何调用注意力层呢?

    Updated Oct 24, 2022
  • #19

    a = K.permute_dimensions(a, (0, 3, 2, 1))

    Updated Oct 21, 2021
  • #20

    Keras的batch_dot()如何用pytorch改写

    Updated May 24, 2021
  • #18

    Is there tensorflow implementation of sparse attention?

    Updated Mar 15, 2021
  • #16

    模型加载问题

    Updated Aug 24, 2020
  • #14

    请问Q,K,V分别是从哪里输入的呢?

    Updated Mar 21, 2020
  • #17

    I have no idea what method "to_mask" helps.

    Updated Sep 24, 2019
  • #15

    K,Q,V映射

    Updated Jun 3, 2019
  • #10

    attention_keras.py中,Position_Embedding的pos的计算

    Updated Apr 19, 2019
  • #11

    tf中position

    Updated Dec 14, 2018

Highlights

  • •Python

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言