Add device and key for lazy tensors (#61621)

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

Test Plan: CI

Reviewed By: mruberry

Differential Revision: D29912934

Pulled By: asuhan

fbshipit-source-id: 493c32063a3e756d93cbf1d876563a35eaafb537
This commit is contained in:
Alex Suhan
2021-07-26 22:59:10 -07:00
committed by Facebook GitHub Bot
parent 2945a73d90
commit b176feec1e
24 changed files with 187 additions and 70 deletions

View File

@ -55,6 +55,7 @@ class PythonDispatcher:
"CPU", "AutogradCPU",
"QuantizedCPU", "AutogradOther",
"XLA", "AutogradXLA",
"Lazy", "AutogradLazy",
]
alias_keys = [
"CompositeExplicitAutograd",