gen_backend_stubs.py: fix typo for supported_autograd (#68562)

Summary:
Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/68562

Reviewed By: jbschlosser

Differential Revision: D32758608

Pulled By: bdhirsh

fbshipit-source-id: 496e1ec831edaa6fcc586f3c8f0361c31cad4e78
This commit is contained in:
Guo Yejun 2022-02-07 17:21:07 -08:00 committed by Facebook GitHub Bot
parent 93eef03aa6
commit 68ea9e9df5

View File

@ -58,7 +58,7 @@ def parse_backend_yaml(
assert isinstance(supported, list), f'expected "supported" to be a list, but got: {supported} (of type {type(supported)})'
supported_autograd = yaml_values.pop('autograd', [])
assert isinstance(supported, list), f'expected "autograd" to be a list, but got: {supported_autograd}'
assert isinstance(supported_autograd, list), f'expected "autograd" to be a list, but got: {supported_autograd}'
# full_codegen is ignored by parse_backend_yaml, and re-parsed in gen_lazy_tensor.py
full_codegen = yaml_values.pop('full_codegen', [])