mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Add forward AD support for as_strided (#68629)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/68629 Test Plan: Imported from OSS Reviewed By: albanD Differential Revision: D32899680 Pulled By: soulitzer fbshipit-source-id: b80ba4483c06108938923f17dc67278b854515ef
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fed9b90ed4
commit
6078e12ad6
@ -681,7 +681,7 @@ class TestViewOps(TestCase):
|
||||
x = prepro_fn(x)
|
||||
return x.as_strided(size, strides, offset)
|
||||
|
||||
gradcheck(closure, [x])
|
||||
gradcheck(closure, [x], check_forward_ad=True)
|
||||
gradgradcheck(closure, [x])
|
||||
|
||||
# test
|
||||
|
Reference in New Issue
Block a user