[fx_acc] Add mapper for torch.log1p (#63792)
authorShiyan Deng <dsy842974287@fb.com>
Tue, 24 Aug 2021 00:41:38 +0000 (17:41 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 24 Aug 2021 00:48:59 +0000 (17:48 -0700)
commit630ec2e190fe866e8b5c87844d6dd09bf134aac5
treefb99e276b1a6d8ec0ce9316ec2b75d48bd04b15c
parente4f44bec27bc458c5dc8021ed87f0e6fae904ef4
[fx_acc] Add mapper for torch.log1p (#63792)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63792

Map `torch.log1p` to `acc_ops.add` + `acc_ops.log`.

Test Plan: buck test mode/opt glow/fb/fx/oss_acc_tracer:test_acc_tracer -- test_log1p

Reviewed By: wushirong

Differential Revision: D30491706

fbshipit-source-id: bcbeddf06131113185d2019cfd7cf5e9193a8a78
torch/fx/experimental/fx_acc/acc_ops.py