Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Conversation

@jeffreyliu3230
Copy link

Summary:
Alternative approach to #1631. Handling ImportError of accelerator in accelerator_lowering.py instead of new_task.py.
accelerator function is both used as a declarator on class AcceleratorTransformerLayers and called directly in lower_modules_to_accelerator. In addition to adding the try block for importing accelerator, accelerator_lowering_supported is used in lower_modules_to_accelerator to avoid ImportError.

Differential Revision: D26885302

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Mar 8, 2021
@facebook-github-bot
Copy link
Contributor

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

jeffreyliu3230 pushed a commit to jeffreyliu3230/pytext that referenced this pull request Mar 8, 2021
facebookresearch#1633)

Summary:
Pull Request resolved: facebookresearch#1633

Alternative approach to facebookresearch#1631. Handling ImportError of accelerator in accelerator_lowering.py instead of new_task.py.
accelerator function is both used as a declarator on class AcceleratorTransformerLayers and called directly in lower_modules_to_accelerator. In addition to adding the try block for importing accelerator, accelerator_lowering_supported is used in lower_modules_to_accelerator to avoid ImportError.

Differential Revision: D26885302

fbshipit-source-id: 13f8c9c23fa56db573c1ea32c582fee91a001972
@facebook-github-bot
Copy link
Contributor

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

facebookresearch#1633)

Summary:
Pull Request resolved: facebookresearch#1633

Alternative approach to facebookresearch#1631. Handling ImportError of accelerator in accelerator_lowering.py instead of new_task.py.
accelerator function is both used as a declarator on class AcceleratorTransformerLayers and called directly in lower_modules_to_accelerator. In addition to adding the try block for importing accelerator, accelerator_lowering_supported is used in lower_modules_to_accelerator to avoid ImportError.

Differential Revision: D26885302

fbshipit-source-id: 7540b0443678fd5ca0536aafd0a1c0402b044ec0
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 653a05e.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants