Skip to content

fix(aten::neg): Fix a index bug in neg #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2020

Conversation

narendasan
Copy link
Collaborator

Description

Fixed an index issue with neg

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas and hacks
  • I have made corresponding changes to the documentation and have regenerated the documentation (make html in docsrc)
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes

Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
@narendasan narendasan merged commit 1168092 into pytorch:master Jun 5, 2020
frank-wei pushed a commit that referenced this pull request Jun 4, 2022
Summary:
Pull Request resolved: https://github.com/pytorch/fx2trt/pull/86

1. delete dead code should be used cautiously. We need to keep the other inplace op for future optimization pass.
2. add support for type
3. disable isinf converter since the implementation will generate inaccurate results in hf_T5 model. The reason is not very clear
4. disable embedding converter for a few reasons 1) embedding in hf models are all int64 indices which will skip this op anyway 2)if the indices are constant node, it should throw error and this whole subgraph will fall back to non-TRT. So it is better uncommented and leave it to future.

hf models in torchbench are summarized below. 3 models do not work well for TRT with speedup close 1x since major subgraph fall back to non-TRT.

Reviewed By: 842974287

Differential Revision: D36731186

fbshipit-source-id: 8f56fb875419b9a3f03432f0ef5c00fdfc6b6741
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant