Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Torge Berckmann
Fairseq
Commits
8a8d5453
Commit
8a8d5453
authored
Dec 03, 2021
by
Torge Berckmann
Browse files
Show where to save sample representations
parent
db1c3eeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/speech_text_joint_to_text/models/s2t_dualinputtransformer.py
View file @
8a8d5453
...
...
@@ -560,6 +560,9 @@ class TransformerMultiInputDecoder(FairseqDecoder):
)
if
self
.
run_corr_arr
:
#torch.save(rst[0][1]['inner_states'], "rst01inner.pt")
#torch.save(rst[1][1]['inner_states'], "rst11inner.pt")
#exit(1)
# Compare internal decoder states resulting from text and speech inputs
# store intermediate correlation calculation resulting from the comparison
self
.
update_corr
(
rst
[
0
][
1
][
'inner_states'
],
rst
[
1
][
1
][
'inner_states'
])
...
...
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