pytorch
34617d7e - dynamo export should be able to export identity function (#94962)

Comment changes are shownComment changes are hidden
Commit
1 year ago
dynamo export should be able to export identity function (#94962) Summary: While working increasing coverage (https://github.com/jansel/pytorch-jit-paritybench/pull/5) I found that identity function are not exportable because the generated graph has no call_function. Test Plan: Unit test Reviewers: Subscribers: Tasks: Tags: Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/94962 Approved by: https://github.com/yanboliang
Author
Committer
Parents
  • test/dynamo
    • File
      test_export.py
  • torch/_dynamo
    • File
      symbolic_convert.py