Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Conversation

@cndn
Copy link
Contributor

@cndn cndn commented Nov 22, 2019

Summary:
After internal version is introduced and transformer uses namedtuple instead of dict, need to update the export code accordingly.

Also we used torch.empty([0]) to represent initial attention instead of None, to unify the data type in TorchScript.

Differential Revision: D18648224

@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D18648224

cndn added a commit to cndn/translate that referenced this pull request Nov 23, 2019
Summary:
Pull Request resolved: pytorch#667

After internal version is introduced and transformer uses namedtuple instead of dict, need to update the export code accordingly.

Also we used torch.empty([0]) to represent initial attention instead of None, to unify the data type in TorchScript.

Reviewed By: jhcross

Differential Revision: D18648224

fbshipit-source-id: 12a0aaf20162e7fd79d9d4e40cd9deb9ae10ffb7
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D18648224

Summary:
Pull Request resolved: pytorch#667

After internal version is introduced and transformer uses namedtuple instead of dict, need to update the export code accordingly.

Also we used torch.empty([0]) to represent initial attention instead of None, to unify the data type in TorchScript.

Reviewed By: jhcross

Differential Revision: D18648224

fbshipit-source-id: b719768e6efad5237fca4c2f7b7e4cf554165f37
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D18648224

caltia pushed a commit to caltia/fairseq that referenced this pull request Jul 8, 2025
Summary:
Pull Request resolved: pytorch/translate#667

After internal version is introduced and transformer uses namedtuple instead of dict, need to update the export code accordingly.

Also we used torch.empty([0]) to represent initial attention instead of None, to unify the data type in TorchScript.

Reviewed By: jhcross

Differential Revision: D18648224

fbshipit-source-id: efea4252675eae98de24029f18790a7cda8ecdbd
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants