Relative-Position-Representations:Python

时间:2021-04-12 16:51:16
【文件属性】:
文件名称:Relative-Position-Representations:Python
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-12 16:51:16
Python 相对位置表示 python定义了一个keras层,该层采用相对位置表示和多头自我关注机制。 该代码来自论文“具有相对位置表示的自我注意”的源代码。 tensor2tensor库可从。 从tensorflow以tf导入tensorflow从tensorflow.keras导入keras导入层将numpy导入为np
【文件预览】:
Relative-Position-Representations-main
----Relative_position_coding.py(13KB)
----README.md(461B)

网友评论