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