mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix doc (#53996)
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:
committed by
Facebook GitHub Bot
parent
e87ab2ac4d
commit
b9fdf72174
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user