Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
f14e2a44
Commit
f14e2a44
authored
May 20, 2022
by
turneram
Browse files
Add num_heads to attention node
parent
eff3d2d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
test/onnx/attention_test.onnx
test/onnx/attention_test.onnx
+4
-3
test/onnx/gen_onnx.py
test/onnx/gen_onnx.py
+2
-0
No files found.
test/onnx/attention_test.onnx
View file @
f14e2a44
attention_test:
ä
attention_test:
ö
B
T
input
input
weights
weights
bias
bias
mask_indexresultAttention_0" Attentionattention_testZ
mask_indexresultAttention_0" Attention*
num_heads attention_testZ
input
input
...
...
test/onnx/gen_onnx.py
View file @
f14e2a44
...
@@ -203,6 +203,8 @@ def attention_test():
...
@@ -203,6 +203,8 @@ def attention_test():
node
=
helper
.
make_node
(
'Attention'
,
node
=
helper
.
make_node
(
'Attention'
,
inputs
=
[
'input'
,
'weights'
,
'bias'
,
'mask_index'
],
inputs
=
[
'input'
,
'weights'
,
'bias'
,
'mask_index'
],
outputs
=
[
'result'
],
outputs
=
[
'result'
],
num_heads
=
12
,
name
=
"Attention_0"
)
name
=
"Attention_0"
)
return
([
node
],
[
input
,
weights
,
bias
,
mask_index
],
[
result
])
return
([
node
],
[
input
,
weights
,
bias
,
mask_index
],
[
result
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment