Creating a helper function to generate an unique name for an attr in a module (#64970)
authorProtonu Basu <protonu@fb.com>
Mon, 20 Sep 2021 21:29:30 +0000 (14:29 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 20 Sep 2021 21:35:56 +0000 (14:35 -0700)
commit31f61122dab02ecc2d4a7bf5f272ff8e86c7ce0f
treef8b4ce4adb2e17173936a5c5b1f25a4945724266
parentb45ec163106f5b801ebfe306ae659d85efc3432b
Creating a helper function to generate an unique name for an attr in a module (#64970)

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

Add a helper function to create an unique name for an attr.
This can be used when we want to add a weight to a module.

Test Plan: run CI.

Reviewed By: jfix71

Differential Revision: D30921497

fbshipit-source-id: 598569d107df8b516ff12920a4bef3a42577e987
torch/fx/experimental/const_fold.py
torch/fx/experimental/fx_acc/acc_utils.py