Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awslabs/gap-text2sql
/ clones
Function
clones
rat-sql-gap/seq2struct/models/transformer.py:93–94 ·
view source on GitHub ↗
(module_fn, N)
Source
from the content-addressed store, hash-verified
91
92
# Adapted from The Annotated Transformer
93
def
clones(module_fn, N):
94
return
nn.ModuleList([module_fn()
for
_ in range(N)])
95
96
97
def
attention(query, key, value, mask=None, dropout=None):
Callers
5
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected