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

Fixes issue: #52479

Test Plan: Imported from OSS

Reviewed By: anjali411

Differential Revision: D27051056

Pulled By: nikithamalgifb

fbshipit-source-id: ff5d2fc3599571346e2323fa893c1e238097a164
This commit is contained in:
nikithamalgi
2021-03-15 15:42:35 -07:00
committed by Facebook GitHub Bot
parent e87ab2ac4d
commit b9fdf72174

View File

@ -875,7 +875,7 @@ def is_scripting():
return x
def linear(x):
if not torch.jit.is_scripting():
if torch.jit.is_scripting():
return torch.linear(x)
else:
return unsupported_linear_op(x)