Fixes #77412

Signed-off-by: Edward Z. Yang <ezyangfb.com>

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

Approved by: https://github.com/mruberry
This commit is contained in:
Edward Z. Yang
2022-05-14 12:43:27 -04:00
committed by PyTorch MergeBot
parent 55be35ae39
commit befa4e371e

View File

@ -1961,7 +1961,7 @@ class NativeFunctionsViewGroup:
assert not gets_generated_view_copy(self.view), (
f"{str(self.view.func.name)} appears to be a new operator that aliases its inputs."
" The codegen expects you to add a corresponding operator to native_functions.yaml:"
f" {get_view_copy_name(self.view):!s}."
f" {get_view_copy_name(self.view)!s}."
" See Note [view_copy NativeFunctions] for details."
)
else: